summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-04-30 15:40:54 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-04-30 15:40:54 +0000
commite87dadc44b1544c35e13cf48dfe167109929a944 (patch)
treeb5142993e8acc356f130f2e58f4ae1aefdbd8d17 /test/ExecutionEngine
parent1872730c5a0d95ba9d2ed7e1e9607e86c50e9070 (diff)
downloadllvm-e87dadc44b1544c35e13cf48dfe167109929a944.tar.gz
llvm-e87dadc44b1544c35e13cf48dfe167109929a944.tar.bz2
llvm-e87dadc44b1544c35e13cf48dfe167109929a944.tar.xz
Fix Addend computation for non external relocations on Macho.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180790 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/MCJIT/non-extern-addend.ll12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ExecutionEngine/MCJIT/non-extern-addend.ll b/test/ExecutionEngine/MCJIT/non-extern-addend.ll
new file mode 100644
index 0000000000..3a6e634412
--- /dev/null
+++ b/test/ExecutionEngine/MCJIT/non-extern-addend.ll
@@ -0,0 +1,12 @@
+; RUN: %lli_mcjit %s > /dev/null
+
+define i32 @foo(i32 %X, i32 %Y, double %A) {
+ %cond212 = fcmp ueq double %A, 2.000000e+00 ; <i1> [#uses=1]
+ %cast110 = zext i1 %cond212 to i32 ; <i32> [#uses=1]
+ ret i32 %cast110
+}
+
+define i32 @main() {
+ %reg212 = call i32 @foo( i32 0, i32 1, double 1.000000e+00 ) ; <i32> [#uses=1]
+ ret i32 %reg212
+}