forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Pre-commit test for pr90668. NFC
- Loading branch information
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4 | ||
; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s | ||
|
||
define i64 @off(i8 signext %a) { | ||
; CHECK-LABEL: off: | ||
; CHECK: # %bb.0: # %entry | ||
; CHECK-NEXT: movzbl %dil, %eax | ||
; CHECK-NEXT: leal 1024(,%rax,8), %eax | ||
; CHECK-NEXT: retq | ||
entry: | ||
%add = xor i8 %a, -128 | ||
%conv2 = zext i8 %add to i64 | ||
%mul = shl nuw nsw i64 %conv2, 3 | ||
ret i64 %mul | ||
} |