File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 1+ // REQUIRES: target_PowerPC
2+
3+ // RUN: %ldc -c -output-ll -of=%t.ll %s -mtriple=powerpc64le-linux-gnu -mabi=ieeelongdouble && FileCheck %s --check-prefix=CHECK-GNU-IEEE < %t.ll
4+ // RUN: %ldc -c -output-ll -of=%t.ll %s -mtriple=powerpc64le-linux-gnu && FileCheck %s --check-prefix=CHECK-IBM-LDBL < %t.ll
5+ // the following is an invalid configuration: Musl does not support IEEE quad fp on powerpc
6+ // RUN: %ldc -c -output-ll -of=%t.ll %s -mtriple=powerpc64le-linux-musl -mabi=ieeelongdouble && FileCheck %s --check-prefix=CHECK-MUSL < %t.ll
7+
8+ // CHECK-GNU-IEEE-LABEL: @_Z13test_functionu9__ieee128
9+ // CHECK-IBM-LDBL-LABEL: @_Z13test_functiong
10+ // CHECK-MUSL-LABEL: @_Z13test_functione
11+ extern (C++ ) bool test_function(real arg) {
12+ // CHECK-GNU-IEEE: fcmp ogt fp128 {{.*}}, 0xL00000000000000000000000000000000
13+ // CHECK-IBM-LDBL: fcmp ogt ppc_fp128 {{.*}}, 0xM00000000000000000000000000000000
14+ // CHECK-MUSL: fcmp ogt double {{.*}}, 0.000000e+00
15+ return arg > 0.0 ;
16+ }
17+
18+ // CHECK-GNU-IEEE: !{i32 1, !"float-abi", !"ieeequad"}
19+ // CHECK-IBM-LDBL: !{i32 1, !"float-abi", !"doubledouble"}
You can’t perform that action at this time.
0 commit comments