llvm.org GIT mirror llvm / release_50 test / CodeGen / X86 / fast-isel-sext.ll
release_50

Tree @release_50 (Download .tar.gz)

fast-isel-sext.ll @release_50raw · history · blame

1
2
3
4
5
6
7
8
9
; RUN: llc -mtriple=x86_64-linux -fast-isel -show-mc-encoding < %s | FileCheck %s

; CHECK-LABEL: f:
; CHECK:       addl $-2, %eax         # encoding: [0x83,0xc0,0xfe]
define i32 @f(i32* %y) {
  %x = load i32, i32* %y
  %dec = add i32 %x, -2
  ret i32 %dec
}