aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/fast-isel.ll
blob: 36c5a2dca3b4c211482ebaad4c11ccd6afbc2871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: llvm-as < %s | llc -fast-isel | grep add | count 1

; This tests very minimal fast-isel functionality.

define i32 @foo(i32* %p, i32* %q) {
entry:
  %r = load i32* %p
  %s = load i32* %q
  br label %fast

fast:
  %t = add i32 %r, %s
  br label %exit

exit:
  ret i32 %t
}