1,266 changes: 630 additions & 636 deletions llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/3addr-or.ll
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ define i32 @test1(i32 %x) nounwind ssp {
define i64 @test2(i8 %A, i8 %B) nounwind {
; CHECK-LABEL: test2:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $esi killed $esi def $rsi
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
; CHECK-NEXT: shll $4, %edi
; CHECK-NEXT: andl $48, %edi
Expand Down
8 changes: 0 additions & 8 deletions llvm/test/CodeGen/X86/abdu.ll
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ define i8 @abd_ext_i8(i8 %a, i8 %b) nounwind {
;
; X64-LABEL: abd_ext_i8:
; X64: # %bb.0:
; X64-NEXT: # kill: def $esi killed $esi def $rsi
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzbl %dil, %ecx
; X64-NEXT: movzbl %sil, %eax
; X64-NEXT: subq %rax, %rcx
Expand Down Expand Up @@ -52,8 +50,6 @@ define i8 @abd_ext_i8_undef(i8 %a, i8 %b) nounwind {
;
; X64-LABEL: abd_ext_i8_undef:
; X64: # %bb.0:
; X64-NEXT: # kill: def $esi killed $esi def $rsi
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzbl %dil, %ecx
; X64-NEXT: movzbl %sil, %eax
; X64-NEXT: subq %rax, %rcx
Expand Down Expand Up @@ -84,8 +80,6 @@ define i16 @abd_ext_i16(i16 %a, i16 %b) nounwind {
;
; X64-LABEL: abd_ext_i16:
; X64: # %bb.0:
; X64-NEXT: # kill: def $esi killed $esi def $rsi
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzwl %di, %ecx
; X64-NEXT: movzwl %si, %eax
; X64-NEXT: subq %rax, %rcx
Expand Down Expand Up @@ -116,8 +110,6 @@ define i16 @abd_ext_i16_undef(i16 %a, i16 %b) nounwind {
;
; X64-LABEL: abd_ext_i16_undef:
; X64: # %bb.0:
; X64-NEXT: # kill: def $esi killed $esi def $rsi
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzwl %di, %ecx
; X64-NEXT: movzwl %si, %eax
; X64-NEXT: subq %rax, %rcx
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/addcarry.ll
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,6 @@ define { i64, i1 } @addcarry_carry_not_zext(i64 %a, i64 %b, i64 %carryin) nounwi
define { i64, i1 } @addcarry_carry_not_i1(i64 %a, i64 %b, i8 %carryin) nounwind {
; CHECK-LABEL: addcarry_carry_not_i1:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $edx killed $edx def $rdx
; CHECK-NEXT: addq %rsi, %rdi
; CHECK-NEXT: setb %cl
; CHECK-NEXT: movzbl %dl, %eax
Expand Down
45 changes: 23 additions & 22 deletions llvm/test/CodeGen/X86/and-shift.ll
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s --check-prefix=X32
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefix=X64
; RUN: llc < %s -mtriple=i386-unknown-unknown | FileCheck %s --check-prefixes=X86
; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s --check-prefixes=X64
; RUN: llc < %s -mtriple=x86_64-unknown-gnux32 | FileCheck %s --check-prefixes=X64

define i32 @shift30_and2_i32(i32 %x) {
; X32-LABEL: shift30_and2_i32:
; X32: # %bb.0:
; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
; X32-NEXT: shrl $30, %eax
; X32-NEXT: andl $-2, %eax
; X32-NEXT: retl
; X86-LABEL: shift30_and2_i32:
; X86: # %bb.0:
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-NEXT: shrl $30, %eax
; X86-NEXT: andl $-2, %eax
; X86-NEXT: retl
;
; X64-LABEL: shift30_and2_i32:
; X64: # %bb.0:
Expand All @@ -22,13 +23,13 @@ define i32 @shift30_and2_i32(i32 %x) {
}

define i64 @shift62_and2_i64(i64 %x) {
; X32-LABEL: shift62_and2_i64:
; X32: # %bb.0:
; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
; X32-NEXT: shrl $30, %eax
; X32-NEXT: andl $-2, %eax
; X32-NEXT: xorl %edx, %edx
; X32-NEXT: retl
; X86-LABEL: shift62_and2_i64:
; X86: # %bb.0:
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-NEXT: shrl $30, %eax
; X86-NEXT: andl $-2, %eax
; X86-NEXT: xorl %edx, %edx
; X86-NEXT: retl
;
; X64-LABEL: shift62_and2_i64:
; X64: # %bb.0:
Expand All @@ -42,13 +43,13 @@ define i64 @shift62_and2_i64(i64 %x) {
}

define i64 @shift30_and2_i64(i64 %x) {
; X32-LABEL: shift30_and2_i64:
; X32: # %bb.0:
; X32-NEXT: movl {{[0-9]+}}(%esp), %eax
; X32-NEXT: shrl $30, %eax
; X32-NEXT: andl $-2, %eax
; X32-NEXT: xorl %edx, %edx
; X32-NEXT: retl
; X86-LABEL: shift30_and2_i64:
; X86: # %bb.0:
; X86-NEXT: movl {{[0-9]+}}(%esp), %eax
; X86-NEXT: shrl $30, %eax
; X86-NEXT: andl $-2, %eax
; X86-NEXT: xorl %edx, %edx
; X86-NEXT: retl
;
; X64-LABEL: shift30_and2_i64:
; X64: # %bb.0:
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/avx512cd-intrinsics-upgrade.ll
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,6 @@ define <8 x i64> @test_x86_broadcastmb_512(i8 %a0) {
;
; X64-LABEL: test_x86_broadcastmb_512:
; X64: # %bb.0:
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzbl %dil, %eax
; X64-NEXT: vpbroadcastq %rax, %zmm0
; X64-NEXT: retq
Expand Down
2 changes: 0 additions & 2 deletions llvm/test/CodeGen/X86/avx512cdvl-intrinsics-upgrade.ll
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ define <4 x i64> @test_x86_broadcastmb_256(i8 %a0) {
;
; X64-LABEL: test_x86_broadcastmb_256:
; X64: # %bb.0:
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzbl %dil, %eax
; X64-NEXT: vpbroadcastq %rax, %ymm0
; X64-NEXT: retq
Expand All @@ -202,7 +201,6 @@ define <2 x i64> @test_x86_broadcastmb_128(i8 %a0) {
;
; X64-LABEL: test_x86_broadcastmb_128:
; X64: # %bb.0:
; X64-NEXT: # kill: def $edi killed $edi def $rdi
; X64-NEXT: movzbl %dil, %eax
; X64-NEXT: vpbroadcastq %rax, %xmm0
; X64-NEXT: retq
Expand Down
3 changes: 1 addition & 2 deletions llvm/test/CodeGen/X86/avx512fp16-mov.ll
Original file line number Diff line number Diff line change
Expand Up @@ -2130,9 +2130,8 @@ define <16 x i32> @pr52561(<16 x i32> %a, <16 x i32> %b) "min-legal-vector-width
define <8 x i16> @pr59628_xmm(i16 %arg) {
; X64-LABEL: pr59628_xmm:
; X64: # %bb.0:
; X64-NEXT: vxorps %xmm0, %xmm0, %xmm0
; X64-NEXT: vmovw %edi, %xmm0
; X64-NEXT: vpbroadcastw %edi, %xmm1
; X64-NEXT: vmovsh %xmm1, %xmm0, %xmm0
; X64-NEXT: vpcmpneqw {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm1, %k1
; X64-NEXT: vmovdqu16 %xmm0, %xmm0 {%k1} {z}
; X64-NEXT: retq
Expand Down
4 changes: 0 additions & 4 deletions llvm/test/CodeGen/X86/cmp-concat.ll
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ define i1 @cmp_anybits_concat_i32(i32 %x, i32 %y) {
define i1 @cmp_anybits_concat_shl_shl_i16(i16 %x, i16 %y) {
; CHECK-LABEL: cmp_anybits_concat_shl_shl_i16:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $esi killed $esi def $rsi
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
; CHECK-NEXT: movzwl %di, %eax
; CHECK-NEXT: movzwl %si, %ecx
; CHECK-NEXT: shlq $8, %rcx
Expand All @@ -53,8 +51,6 @@ define i1 @cmp_anybits_concat_shl_shl_i16(i16 %x, i16 %y) {
define i1 @cmp_anybits_concat_shl_shl_i16_commute(i16 %x, i16 %y) {
; CHECK-LABEL: cmp_anybits_concat_shl_shl_i16_commute:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $esi killed $esi def $rsi
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
; CHECK-NEXT: movzwl %di, %eax
; CHECK-NEXT: movzwl %si, %ecx
; CHECK-NEXT: shlq $8, %rcx
Expand Down
8 changes: 3 additions & 5 deletions llvm/test/CodeGen/X86/dag-update-nodetomatch.ll
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ define void @_Z2x6v() local_unnamed_addr {
; CHECK-NEXT: .cfi_offset %rbp, -16
; CHECK-NEXT: movq x1@GOTPCREL(%rip), %rax
; CHECK-NEXT: movl (%rax), %ebx
; CHECK-NEXT: movl %ebx, %r9d
; CHECK-NEXT: andl $511, %r9d # imm = 0x1FF
; CHECK-NEXT: leaq 1(%r9), %rax
; CHECK-NEXT: andl $511, %ebx # imm = 0x1FF
; CHECK-NEXT: leaq 1(%rbx), %rax
; CHECK-NEXT: movq x4@GOTPCREL(%rip), %rcx
; CHECK-NEXT: movl %eax, (%rcx)
; CHECK-NEXT: movq x3@GOTPCREL(%rip), %rcx
Expand All @@ -135,12 +134,11 @@ define void @_Z2x6v() local_unnamed_addr {
; CHECK-NEXT: addq %rsi, %rdi
; CHECK-NEXT: movq x2@GOTPCREL(%rip), %r8
; CHECK-NEXT: movl (%r8), %edx
; CHECK-NEXT: leal 8(,%r9,8), %eax
; CHECK-NEXT: leal 8(,%rbx,8), %eax
; CHECK-NEXT: movq %rax, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
; CHECK-NEXT: leaq 8(%rsi), %rax
; CHECK-NEXT: movq %rax, {{[-0-9]+}}(%r{{[sb]}}p) # 8-byte Spill
; CHECK-NEXT: leaq 32(%rsi), %r11
; CHECK-NEXT: andl $511, %ebx # imm = 0x1FF
; CHECK-NEXT: leaq 8(,%rbx,8), %rbx
; CHECK-NEXT: xorl %r14d, %r14d
; CHECK-NEXT: movq x0@GOTPCREL(%rip), %r15
Expand Down
11 changes: 5 additions & 6 deletions llvm/test/CodeGen/X86/is_fpclass-fp80.ll
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,10 @@ define i1 @is_inf_f80(x86_fp80 %x) {
; CHECK-64: # %bb.0: # %entry
; CHECK-64-NEXT: movl {{[0-9]+}}(%rsp), %eax
; CHECK-64-NEXT: notl %eax
; CHECK-64-NEXT: andl $32767, %eax # imm = 0x7FFF
; CHECK-64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
; CHECK-64-NEXT: xorq {{[0-9]+}}(%rsp), %rcx
; CHECK-64-NEXT: orq %rax, %rcx
; CHECK-64-NEXT: andl $32767, %eax # imm = 0x7FFF
; CHECK-64-NEXT: orq %rcx, %rax
; CHECK-64-NEXT: sete %al
; CHECK-64-NEXT: retq
entry:
Expand Down Expand Up @@ -318,12 +318,11 @@ define i1 @is_neginf_f80(x86_fp80 %x) {
;
; CHECK-64-LABEL: is_neginf_f80:
; CHECK-64: # %bb.0: # %entry
; CHECK-64-NEXT: movl {{[0-9]+}}(%rsp), %eax
; CHECK-64-NEXT: notl %eax
; CHECK-64-NEXT: movzwl %ax, %eax
; CHECK-64-NEXT: movzwl {{[0-9]+}}(%rsp), %eax
; CHECK-64-NEXT: xorl $65535, %eax # imm = 0xFFFF
; CHECK-64-NEXT: movabsq $-9223372036854775808, %rcx # imm = 0x8000000000000000
; CHECK-64-NEXT: xorq {{[0-9]+}}(%rsp), %rcx
; CHECK-64-NEXT: orq %rax, %rcx
; CHECK-64-NEXT: orq %rcx, %rax
; CHECK-64-NEXT: sete %al
; CHECK-64-NEXT: retq
entry:
Expand Down
4 changes: 0 additions & 4 deletions llvm/test/CodeGen/X86/memset-inline.ll
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ define void @memset_4(ptr %a, i8 %value) nounwind {
define void @memset_8(ptr %a, i8 %value) nounwind {
; GPR-LABEL: memset_8:
; GPR: # %bb.0:
; GPR-NEXT: # kill: def $esi killed $esi def $rsi
; GPR-NEXT: movzbl %sil, %eax
; GPR-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; GPR-NEXT: imulq %rax, %rcx
Expand All @@ -57,7 +56,6 @@ define void @memset_8(ptr %a, i8 %value) nounwind {
define void @memset_16(ptr %a, i8 %value) nounwind {
; SSE2-LABEL: memset_16:
; SSE2: # %bb.0:
; SSE2-NEXT: # kill: def $esi killed $esi def $rsi
; SSE2-NEXT: movzbl %sil, %eax
; SSE2-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE2-NEXT: imulq %rax, %rcx
Expand Down Expand Up @@ -94,7 +92,6 @@ define void @memset_16(ptr %a, i8 %value) nounwind {
define void @memset_32(ptr %a, i8 %value) nounwind {
; SSE2-LABEL: memset_32:
; SSE2: # %bb.0:
; SSE2-NEXT: # kill: def $esi killed $esi def $rsi
; SSE2-NEXT: movzbl %sil, %eax
; SSE2-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE2-NEXT: imulq %rax, %rcx
Expand Down Expand Up @@ -136,7 +133,6 @@ define void @memset_32(ptr %a, i8 %value) nounwind {
define void @memset_64(ptr %a, i8 %value) nounwind {
; SSE2-LABEL: memset_64:
; SSE2: # %bb.0:
; SSE2-NEXT: # kill: def $esi killed $esi def $rsi
; SSE2-NEXT: movzbl %sil, %eax
; SSE2-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE2-NEXT: imulq %rax, %rcx
Expand Down
4 changes: 0 additions & 4 deletions llvm/test/CodeGen/X86/memset-nonzero.ll
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,6 @@ declare ptr @__memset_chk(ptr, i32, i64, i64)
define void @memset_16_nonconst_bytes(ptr %x, i8 %c) {
; SSE-LABEL: memset_16_nonconst_bytes:
; SSE: # %bb.0:
; SSE-NEXT: # kill: def $esi killed $esi def $rsi
; SSE-NEXT: movzbl %sil, %eax
; SSE-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE-NEXT: imulq %rax, %rcx
Expand Down Expand Up @@ -324,7 +323,6 @@ define void @memset_16_nonconst_bytes(ptr %x, i8 %c) {
define void @memset_32_nonconst_bytes(ptr %x, i8 %c) {
; SSE-LABEL: memset_32_nonconst_bytes:
; SSE: # %bb.0:
; SSE-NEXT: # kill: def $esi killed $esi def $rsi
; SSE-NEXT: movzbl %sil, %eax
; SSE-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE-NEXT: imulq %rax, %rcx
Expand Down Expand Up @@ -375,7 +373,6 @@ define void @memset_32_nonconst_bytes(ptr %x, i8 %c) {
define void @memset_64_nonconst_bytes(ptr %x, i8 %c) {
; SSE-LABEL: memset_64_nonconst_bytes:
; SSE: # %bb.0:
; SSE-NEXT: # kill: def $esi killed $esi def $rsi
; SSE-NEXT: movzbl %sil, %eax
; SSE-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE-NEXT: imulq %rax, %rcx
Expand Down Expand Up @@ -443,7 +440,6 @@ define void @memset_64_nonconst_bytes(ptr %x, i8 %c) {
define void @memset_128_nonconst_bytes(ptr %x, i8 %c) {
; SSE-LABEL: memset_128_nonconst_bytes:
; SSE: # %bb.0:
; SSE-NEXT: # kill: def $esi killed $esi def $rsi
; SSE-NEXT: movzbl %sil, %eax
; SSE-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; SSE-NEXT: imulq %rax, %rcx
Expand Down
2 changes: 0 additions & 2 deletions llvm/test/CodeGen/X86/memset-vs-memset-inline.ll
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ declare void @llvm.memset.inline.p0.i64(ptr nocapture, i8, i64, i1) nounwind
define void @test1(ptr %a, i8 %value) nounwind {
; CHECK-LABEL: test1:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $esi killed $esi def $rsi
; CHECK-NEXT: movzbl %sil, %eax
; CHECK-NEXT: movabsq $72340172838076673, %rcx # imm = 0x101010101010101
; CHECK-NEXT: imulq %rax, %rcx
Expand All @@ -29,7 +28,6 @@ define void @regular_memset_calls_external_function(ptr %a, i8 %value) nounwind
define void @inlined_set_doesnt_call_external_function(ptr %a, i8 %value) nounwind {
; CHECK-LABEL: inlined_set_doesnt_call_external_function:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $esi killed $esi def $rsi
; CHECK-NEXT: movzbl %sil, %ecx
; CHECK-NEXT: movabsq $72340172838076673, %rax # imm = 0x101010101010101
; CHECK-NEXT: imulq %rcx, %rax
Expand Down
4 changes: 2 additions & 2 deletions llvm/test/CodeGen/X86/narrow-shl-cst.ll
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ define i64 @test18(i64 %x) nounwind {
; CHECK-LABEL: test18:
; CHECK: # %bb.0:
; CHECK-NEXT: movzbl %dil, %eax
; CHECK-NEXT: shlq $10, %rax
; CHECK-NEXT: shll $10, %eax
; CHECK-NEXT: retq
%and = shl i64 %x, 10
%shl = and i64 %and, 261120
Expand All @@ -234,7 +234,7 @@ define i64 @test20(i64 %x) nounwind {
; CHECK-LABEL: test20:
; CHECK: # %bb.0:
; CHECK-NEXT: movzwl %di, %eax
; CHECK-NEXT: shlq $10, %rax
; CHECK-NEXT: shll $10, %eax
; CHECK-NEXT: retq
%and = shl i64 %x, 10
%shl = and i64 %and, 67107840
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/pr30562.ll
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ define i32 @foo(ptr nocapture %perm, i32 %n) {
; CHECK-NEXT: movaps %xmm1, %xmm0
; CHECK-NEXT: jne .LBB0_1
; CHECK-NEXT: # %bb.2: # %exit
; CHECK-NEXT: # kill: def $eax killed $eax killed $rax
; CHECK-NEXT: retq
entry:
br label %body
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/CodeGen/X86/pr35763.ll
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
define dso_local void @PR35763() {
; CHECK-LABEL: PR35763:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: movl z(%rip), %eax
; CHECK-NEXT: orl z+2(%rip), %eax
; CHECK-NEXT: movzwl %ax, %eax
; CHECK-NEXT: movq %rax, tf_3_var_136(%rip)
; CHECK-NEXT: movzwl z(%rip), %eax
; CHECK-NEXT: movzwl z+2(%rip), %ecx
; CHECK-NEXT: orl %eax, %ecx
; CHECK-NEXT: movq %rcx, tf_3_var_136(%rip)
; CHECK-NEXT: movl z+6(%rip), %eax
; CHECK-NEXT: movzbl z+10(%rip), %ecx
; CHECK-NEXT: shlq $32, %rcx
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/subcarry.ll
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ define { i64, i1 } @subcarry_carry_not_zext(i64 %a, i64 %b, i64 %carryin) {
define { i64, i1 } @subcarry_carry_not_i1(i64 %a, i64 %b, i8 %carryin) {
; CHECK-LABEL: subcarry_carry_not_i1:
; CHECK: # %bb.0:
; CHECK-NEXT: # kill: def $edx killed $edx def $rdx
; CHECK-NEXT: movq %rdi, %rax
; CHECK-NEXT: subq %rsi, %rax
; CHECK-NEXT: setb %cl
Expand Down
6 changes: 2 additions & 4 deletions llvm/test/CodeGen/X86/switch-phi-const.ll
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,11 @@ default:
define void @switch_trunc_phi_const(i32 %x) {
; CHECK-LABEL: switch_trunc_phi_const:
; CHECK: # %bb.0: # %bb0
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
; CHECK-NEXT: movzbl %dil, %ecx
; CHECK-NEXT: decl %ecx
; CHECK-NEXT: movzbl %dil, %eax
; CHECK-NEXT: leal -1(%rax), %ecx
; CHECK-NEXT: cmpl $54, %ecx
; CHECK-NEXT: ja .LBB1_8
; CHECK-NEXT: # %bb.1: # %bb0
; CHECK-NEXT: movzbl %dil, %eax
; CHECK-NEXT: movl $3895, %edx # imm = 0xF37
; CHECK-NEXT: jmpq *.LJTI1_0(,%rcx,8)
; CHECK-NEXT: .LBB1_8: # %default
Expand Down
1 change: 0 additions & 1 deletion llvm/test/CodeGen/X86/switch.ll
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,6 @@ sw:
define void @int_max_table_cluster(i8 %x) {
; CHECK-LABEL: int_max_table_cluster:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: # kill: def $edi killed $edi def $rdi
; CHECK-NEXT: cmpb $-9, %dil
; CHECK-NEXT: ja .LBB15_4
; CHECK-NEXT: # %bb.1: # %entry
Expand Down