Skip to content

Commit d688162

Browse files
committed
[X86] Pre-commit test for pr90668. NFC
1 parent 805e08e commit d688162

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

llvm/test/CodeGen/X86/pr90688.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 4
2+
; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s
3+
4+
define i64 @off(i8 signext %a) {
5+
; CHECK-LABEL: off:
6+
; CHECK: # %bb.0: # %entry
7+
; CHECK-NEXT: movzbl %dil, %eax
8+
; CHECK-NEXT: leal 1024(,%rax,8), %eax
9+
; CHECK-NEXT: retq
10+
entry:
11+
%add = xor i8 %a, -128
12+
%conv2 = zext i8 %add to i64
13+
%mul = shl nuw nsw i64 %conv2, 3
14+
ret i64 %mul
15+
}

0 commit comments

Comments
 (0)