[llvm] 7d6b583 - [llvm-reduce] Add test with some aliases.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 27 12:30:25 PDT 2020
Author: Florian Hahn
Date: 2020-10-27T19:29:48Z
New Revision: 7d6b58302a99180c216a9afa9f7e87240cf6fa30
URL: https://github.com/llvm/llvm-project/commit/7d6b58302a99180c216a9afa9f7e87240cf6fa30
DIFF: https://github.com/llvm/llvm-project/commit/7d6b58302a99180c216a9afa9f7e87240cf6fa30.diff
LOG: [llvm-reduce] Add test with some aliases.
Added:
llvm/test/Reduce/remove-alias.ll
Modified:
Removed:
################################################################################
diff --git a/llvm/test/Reduce/remove-alias.ll b/llvm/test/Reduce/remove-alias.ll
new file mode 100644
index 000000000000..02bbf54dd19d
--- /dev/null
+++ b/llvm/test/Reduce/remove-alias.ll
@@ -0,0 +1,37 @@
+; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
+; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s
+
+; Test handling of 'alias'.
+
+; CHECK-INTERESTINGNESS: define void @fn3
+
+; CHECK-FINAL: $a1
+; CHECK-FINAL: $a2
+; CHECK-FINAL: $a3
+; CHECK-FINAL: $a4
+
+; CHECK-FINAL: define void @fn1
+; CHECK-FINAL: define void @fn2
+; CHECK-FINAL: define void @fn3
+; CHECK-FINAL: define void @fn4
+
+@"$a1" = alias void (), void ()* @fn1
+@"$a2" = alias void (), void ()* @fn2
+@"$a3" = alias void (), void ()* @fn3
+@"$a4" = alias void (), void ()* @fn4
+
+define void @fn1() {
+ ret void
+}
+
+define void @fn2() {
+ ret void
+}
+
+define void @fn3() {
+ ret void
+}
+
+define void @fn4() {
+ ret void
+}
More information about the llvm-commits
mailing list