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
4 define i64 @off(i8 signext %a) {
6 ; CHECK: # %bb.0: # %entry
7 ; CHECK-NEXT: addb $-128, %dil
8 ; CHECK-NEXT: movzbl %dil, %eax
9 ; CHECK-NEXT: shll $3, %eax
12 %add = xor i8 %a, -128
13 %conv2 = zext i8 %add to i64
14 %mul = shl nuw nsw i64 %conv2, 3