diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-09-03 06:44:39 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-09-03 06:44:39 +0000 |
commit | a41ee2974b0a0140d5cb430f179dd74dfad57f6d (patch) | |
tree | d06c9ab7ff52bb7055a2a2b874d66072c88b3b97 /llvm/test/CodeGen/X86/fast-isel.ll | |
parent | 31ddd09f4ad43088c3db47118377425d77e20001 (diff) | |
download | bcm5719-llvm-a41ee2974b0a0140d5cb430f179dd74dfad57f6d.tar.gz bcm5719-llvm-a41ee2974b0a0140d5cb430f179dd74dfad57f6d.zip |
Add X86 target hook to implement load (even from GlobalAddress).
llvm-svn: 55693
Diffstat (limited to 'llvm/test/CodeGen/X86/fast-isel.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/fast-isel.ll | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/llvm/test/CodeGen/X86/fast-isel.ll b/llvm/test/CodeGen/X86/fast-isel.ll index 1260eed07f5..10b2e1ee42a 100644 --- a/llvm/test/CodeGen/X86/fast-isel.ll +++ b/llvm/test/CodeGen/X86/fast-isel.ll @@ -2,7 +2,7 @@ ; This tests very minimal fast-isel functionality. -define i32* @foo(i32* %p, i32* %q, i32** %z) { +define i32* @foo(i32* %p, i32* %q, i32** %z) nounwind { entry: %r = load i32* %p %s = load i32* %q @@ -25,7 +25,7 @@ exit: ret i32* %t8 } -define double @bar(double* %p, double* %q) { +define double @bar(double* %p, double* %q) nounwind { entry: %r = load double* %p %s = load double* %q @@ -42,8 +42,16 @@ exit: ret double %t3 } -define i32 @cast(){ +define i32 @cast() nounwind { entry: %tmp2 = bitcast i32 0 to i32 ret i32 %tmp2 } + +@src = external global i32 + +define i32 @loadgv() nounwind { +entry: + %0 = load i32* @src, align 4 + ret i32 %0 +} |