We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 335cfb3 commit 611ccfcCopy full SHA for 611ccfc
llvm/test/CodeGen/X86/pr114360.ll
@@ -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