xref: /llvm-project/llvm/test/CodeGen/X86/fast-isel-sext.ll (revision 2f448bf509432c1a19ec46ab8cbc7353c03c6280)
1; RUN: llc -mtriple=x86_64-linux -fast-isel -show-mc-encoding < %s | FileCheck %s
2
3; CHECK-LABEL: f:
4; CHECK:       addl $-2, %eax         # encoding: [0x83,0xc0,0xfe]
5define i32 @f(ptr %y) {
6  %x = load i32, ptr %y
7  %dec = add i32 %x, -2
8  ret i32 %dec
9}
10