Skip to content

Commit 611ccfc

Browse files
committed
[X86] Add reduced test case for #114360
1 parent 335cfb3 commit 611ccfc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/test/CodeGen/X86/pr114360.ll

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
2+
; RUN: llc < %s -mtriple=x86_64- -debug-counter=dagcombine=0 | FileCheck %s
3+
4+
; BUG: shrinkAndImmediate folds away the AND after the ZEXT has already been folded away to SUBREG_TO_REG losing implicit zext.
5+
define i64 @test() {
6+
; CHECK-LABEL: test:
7+
; CHECK: # %bb.0:
8+
; CHECK-NEXT: movabsq $-4294967295, %rax # imm = 0xFFFFFFFF00000001
9+
; CHECK-NEXT: retq
10+
%x = bitcast i64 u0xffffffff00000001 to i64
11+
%t = trunc i64 %x to i32
12+
%a = and i32 %t, 1
13+
%e = zext i32 %a to i64
14+
ret i64 %e
15+
}

0 commit comments

Comments
 (0)