diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2019-02-01 00:07:20 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2019-02-01 00:07:20 +0000 |
| commit | ef9a3881d0c0cd9b7dc4f0cea39b5ea4635494fb (patch) | |
| tree | e9914e1edf253f9af95c8f33d95746b317494f9b /llvm/test/CodeGen/X86 | |
| parent | da45d68a71a6d7bcb82aa209a4b343d30d7e2f19 (diff) | |
| download | bcm5719-llvm-ef9a3881d0c0cd9b7dc4f0cea39b5ea4635494fb.tar.gz bcm5719-llvm-ef9a3881d0c0cd9b7dc4f0cea39b5ea4635494fb.zip | |
[x86] adjust test to show both add/inc options; NFC
If we're optimizing for size, that overrides the subtarget
feature, so we would always produce 'inc' if we matched
this pattern.
llvm-svn: 352821
Diffstat (limited to 'llvm/test/CodeGen/X86')
| -rw-r--r-- | llvm/test/CodeGen/X86/slow-incdec.ll | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/X86/slow-incdec.ll b/llvm/test/CodeGen/X86/slow-incdec.ll index 6380eb26dba..af4d76f0f59 100644 --- a/llvm/test/CodeGen/X86/slow-incdec.ll +++ b/llvm/test/CodeGen/X86/slow-incdec.ll @@ -90,7 +90,7 @@ declare void @external_a() declare void @external_b() declare {i8, i1} @llvm.uadd.with.overflow.i8(i8, i8) -define void @test_tail_call(i32* %ptr) nounwind optsize { +define void @test_tail_call(i32* %ptr) nounwind { ; CHECK-LABEL: test_tail_call: ; CHECK: # %bb.0: # %entry ; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax @@ -99,9 +99,11 @@ define void @test_tail_call(i32* %ptr) nounwind optsize { ; CHECK-NEXT: addb $1, a ; CHECK-NEXT: setb d ; CHECK-NEXT: testb %al, %al -; CHECK-NEXT: jne external_b # TAILCALL +; CHECK-NEXT: jne .LBB5_2 ; CHECK-NEXT: # %bb.1: # %then ; CHECK-NEXT: jmp external_a # TAILCALL +; CHECK-NEXT: .LBB5_2: # %else +; CHECK-NEXT: jmp external_b # TAILCALL entry: %val = load i32, i32* %ptr %add_ov = call {i32, i1} @llvm.uadd.with.overflow.i32(i32 %val, i32 1) |

