mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	Add nounwind to a few tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72002 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
		| @@ -3,7 +3,7 @@ | |||||||
| ; RUN: grep -F "backedge-taken count is (-2147483632 + (2147483632 smax (-1 + (-1 * %x)) smax (-1 + (-1 * %y))))" | ; RUN: grep -F "backedge-taken count is (-2147483632 + (2147483632 smax (-1 + (-1 * %x)) smax (-1 + (-1 * %y))))" | ||||||
| ; PR2607 | ; PR2607 | ||||||
|  |  | ||||||
| define i32 @b(i32 %x, i32 %y) { | define i32 @b(i32 %x, i32 %y) nounwind { | ||||||
| entry: | entry: | ||||||
| 	%cmp2 = icmp slt i32 %y, %x | 	%cmp2 = icmp slt i32 %y, %x | ||||||
| 	%cond3 = select i1 %cmp2, i32 %y, i32 %x | 	%cond3 = select i1 %cmp2, i32 %y, i32 %x | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| ; RUN: llvm-as < %s | llc -march=arm | grep {str r1, \\\[r.*, -r.*, lsl #2\} | ; RUN: llvm-as < %s | llc -march=arm | grep {str r1, \\\[r.*, -r.*, lsl #2\} | ||||||
|  |  | ||||||
| define void @test(i32* %P, i32 %A, i32 %i) { | define void @test(i32* %P, i32 %A, i32 %i) nounwind { | ||||||
| entry: | entry: | ||||||
|         icmp eq i32 %i, 0               ; <i1>:0 [#uses=1] |         icmp eq i32 %i, 0               ; <i1>:0 [#uses=1] | ||||||
|         br i1 %0, label %return, label %bb |         br i1 %0, label %return, label %bb | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| ; RUN: llvm-as < %s | llc -march=arm | grep -F {str r2, \[r0, +r3, lsl #2\]} | ; RUN: llvm-as < %s | llc -march=arm | grep -F {str r2, \[r0, +r3, lsl #2\]} | ||||||
| ; Should use scaled addressing mode. | ; Should use scaled addressing mode. | ||||||
|  |  | ||||||
| define void @sintzero(i32* %a) { | define void @sintzero(i32* %a) nounwind { | ||||||
| entry: | entry: | ||||||
| 	store i32 0, i32* %a | 	store i32 0, i32* %a | ||||||
| 	br label %cond_next | 	br label %cond_next | ||||||
|   | |||||||
| @@ -1,6 +1,6 @@ | |||||||
| ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep lea | ; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep lea | ||||||
|  |  | ||||||
| define float @foo(i32* %x, float* %y, i32 %c) { | define float @foo(i32* %x, float* %y, i32 %c) nounwind { | ||||||
| entry: | entry: | ||||||
| 	%tmp2132 = icmp eq i32 %c, 0		; <i1> [#uses=1] | 	%tmp2132 = icmp eq i32 %c, 0		; <i1> [#uses=1] | ||||||
| 	br i1 %tmp2132, label %bb23, label %bb18 | 	br i1 %tmp2132, label %bb23, label %bb18 | ||||||
|   | |||||||
| @@ -8,7 +8,7 @@ | |||||||
|  |  | ||||||
| @Arr = external global [0 x i32]		; <[0 x i32]*> [#uses=1] | @Arr = external global [0 x i32]		; <[0 x i32]*> [#uses=1] | ||||||
|  |  | ||||||
| define void @foo(i32 %N.in, i32 %x) { | define void @foo(i32 %N.in, i32 %x) nounwind { | ||||||
| entry: | entry: | ||||||
| 	%N = bitcast i32 %N.in to i32		; <i32> [#uses=1] | 	%N = bitcast i32 %N.in to i32		; <i32> [#uses=1] | ||||||
| 	br label %cond_true | 	br label %cond_true | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| ; RUN: llvm-as < %s | llc -march=x86-64 | grep {(%rdi,%rax,8)} | ; RUN: llvm-as < %s | llc -march=x86-64 | grep {(%rdi,%rax,8)} | ||||||
| ; RUN: llvm-as < %s | llc -march=x86-64 | not grep {addq.*8} | ; RUN: llvm-as < %s | llc -march=x86-64 | not grep {addq.*8} | ||||||
|  |  | ||||||
| define void @foo(double* %y) { | define void @foo(double* %y) nounwind { | ||||||
| entry: | entry: | ||||||
|         br label %bb |         br label %bb | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user