mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 07:34:33 +00:00
Fast-isel is now *minimally* functional. Add a testcase to
demonstrate the extent of its capabilities. Note that it only attempts to operate on one of the blocks in this testcase. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55016 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
78eca170e9
commit
d3aedf445c
17
test/CodeGen/X86/fast-isel.ll
Normal file
17
test/CodeGen/X86/fast-isel.ll
Normal file
@ -0,0 +1,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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user