16 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 52; RUN: llc < %s -mtriple=x86_64-linux-gnu | FileCheck %s3 4; Make sure we don't crash when shrinking the shift amount before legalization.5define i64 @pr92720(i64 %x) {6; CHECK-LABEL: pr92720:7; CHECK: # %bb.0:8; CHECK-NEXT: movabsq $8589934592, %rax # imm = 0x2000000009; CHECK-NEXT: retq10 %or = or i64 %x, 25511 %sub = sub i64 0, %or12 %shl = shl i64 1, %sub13 %sext = shl i64 %shl, 3214 ret i64 %sext15}16