diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/Assembler/2008-09-02-FunctionNotes.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2008-09-02-FunctionNotes2.ll | 2 | ||||
-rw-r--r-- | test/Assembler/2008-09-29-RetAttr.ll | 13 | ||||
-rw-r--r-- | test/Transforms/DeadArgElim/keepalive.ll | 4 |
4 files changed, 17 insertions, 4 deletions
diff --git a/test/Assembler/2008-09-02-FunctionNotes.ll b/test/Assembler/2008-09-02-FunctionNotes.ll index 5ac9bbe..761c91e 100644 --- a/test/Assembler/2008-09-02-FunctionNotes.ll +++ b/test/Assembler/2008-09-02-FunctionNotes.ll @@ -1,4 +1,4 @@ -; Test function notes +; Test function attributes ; RUN: llvm-as < %s | llvm-dis | grep inline | count 2 define void @fn1() alwaysinline { diff --git a/test/Assembler/2008-09-02-FunctionNotes2.ll b/test/Assembler/2008-09-02-FunctionNotes2.ll index 08fd139..6a5116b 100644 --- a/test/Assembler/2008-09-02-FunctionNotes2.ll +++ b/test/Assembler/2008-09-02-FunctionNotes2.ll @@ -1,7 +1,7 @@ ; Test function notes ; RUN: not llvm-as %s |& grep "only one inline note" ; XFAIL: * -define void @fn1() alwaysinline, noinline { +define void @fn1() alwaysinline noinline { ret void } diff --git a/test/Assembler/2008-09-29-RetAttr.ll b/test/Assembler/2008-09-29-RetAttr.ll new file mode 100644 index 0000000..f7db96d --- /dev/null +++ b/test/Assembler/2008-09-29-RetAttr.ll @@ -0,0 +1,13 @@ +; Test return attributes +; RUN: llvm-as < %s | llvm-dis | grep "define inreg i32" +; RUN: llvm-as < %s | llvm-dis | grep "call inreg i32" + +define inreg i32 @fn1() { + ret i32 0 +} + +define void @fn2() { + %t = call inreg i32 @fn1() + ret void +} + diff --git a/test/Transforms/DeadArgElim/keepalive.ll b/test/Transforms/DeadArgElim/keepalive.ll index 9161c7b..678033e 100644 --- a/test/Transforms/DeadArgElim/keepalive.ll +++ b/test/Transforms/DeadArgElim/keepalive.ll @@ -1,5 +1,5 @@ ; RUN: llvm-as < %s | opt -deadargelim | llvm-dis > %t -; RUN: cat %t | grep {define internal i32 @test1() zeroext nounwind} +; RUN: cat %t | grep {define internal zeroext i32 @test1() nounwind} ; RUN: cat %t | grep {define internal \<\{ i32, i32 \}\> @test} ; Check if the pass doesn't modify anything that doesn't need changing. We feed @@ -7,7 +7,7 @@ ; the function and then changing too much. ; This checks if the return value attributes are not removed -define internal i32 @test1(i32 %DEADARG1) nounwind zeroext{ +define internal zeroext i32 @test1(i32 %DEADARG1) nounwind { ret i32 1 } |