aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/SPARC
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-09-04 15:15:20 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2013-09-04 15:15:20 +0000
commitbf34f346420dbcdb3f9376967bde701682471a79 (patch)
treea421b07dadfeb3fd221f7c10dace2013b61a11c3 /test/CodeGen/SPARC
parent6947f10ec467eb89d606bc96450c35864e1b4f10 (diff)
downloadexternal_llvm-bf34f346420dbcdb3f9376967bde701682471a79.zip
external_llvm-bf34f346420dbcdb3f9376967bde701682471a79.tar.gz
external_llvm-bf34f346420dbcdb3f9376967bde701682471a79.tar.bz2
[Sparc] Fix an assertion failure while lowering fcmp on long double.
This assertion is triggered because an integer constant is created with wrong type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189948 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/SPARC')
-rw-r--r--test/CodeGen/SPARC/fp128.ll20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/CodeGen/SPARC/fp128.ll b/test/CodeGen/SPARC/fp128.ll
index 31ce605..1538199 100644
--- a/test/CodeGen/SPARC/fp128.ll
+++ b/test/CodeGen/SPARC/fp128.ll
@@ -76,3 +76,23 @@ entry:
%ret = select i1 %cond, i32 %a, i32 %b
ret i32 %ret
}
+
+; HARD-LABEL: f128_compare2
+; HARD: fcmpq
+; HARD: fb{{ule|g}}
+
+; SOFT-LABEL: f128_compare2
+; SOFT: _Q_cmp
+; SOFT: cmp
+
+define i32 @f128_compare2() {
+entry:
+ %0 = fcmp ogt fp128 undef, 0xL00000000000000000000000000000000
+ br i1 %0, label %"5", label %"7"
+
+"5": ; preds = %entry
+ ret i32 0
+
+"7": ; preds = %entry
+ ret i32 1
+}