comparison test/CodeGen/Mips/cconv/arguments-fp128.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 60c9769439b8
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
1 ; RUN: llc -march=mips64 -relocation-model=static -soft-float -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 %s 1 ; RUN: llc -march=mips64 -relocation-model=static -mattr=+soft-float -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 %s
2 ; RUN: llc -march=mips64el -relocation-model=static -soft-float -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 %s 2 ; RUN: llc -march=mips64el -relocation-model=static -mattr=+soft-float -target-abi n32 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM32 %s
3 3
4 ; RUN: llc -march=mips64 -relocation-model=static -soft-float -target-abi n64 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM64 %s 4 ; RUN: llc -march=mips64 -relocation-model=static -mattr=+soft-float -target-abi n64 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM64 %s
5 ; RUN: llc -march=mips64el -relocation-model=static -soft-float -target-abi n64 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM64 %s 5 ; RUN: llc -march=mips64el -relocation-model=static -mattr=+soft-float -target-abi n64 < %s | FileCheck --check-prefix=ALL --check-prefix=SYM64 %s
6 6
7 ; Test the fp128 arguments for all ABI's and byte orders as specified 7 ; Test the fp128 arguments for all ABI's and byte orders as specified
8 ; by section 2 of the MIPSpro N32 Handbook. 8 ; by section 2 of the MIPSpro N32 Handbook.
9 ; 9 ;
10 ; O32 is not tested because long double is the same as double on O32. 10 ; O32 is not tested because long double is the same as double on O32.
11 11
12 @ldoubles = global [11 x fp128] zeroinitializer 12 @ldoubles = global [11 x fp128] zeroinitializer
13 13
14 define void @ldouble_args(fp128 %a, fp128 %b, fp128 %c, fp128 %d, fp128 %e) nounwind { 14 define void @ldouble_args(fp128 %a, fp128 %b, fp128 %c, fp128 %d, fp128 %e) nounwind {
15 entry: 15 entry:
16 %0 = getelementptr [11 x fp128]* @ldoubles, i32 0, i32 1 16 %0 = getelementptr [11 x fp128], [11 x fp128]* @ldoubles, i32 0, i32 1
17 store volatile fp128 %a, fp128* %0 17 store volatile fp128 %a, fp128* %0
18 %1 = getelementptr [11 x fp128]* @ldoubles, i32 0, i32 2 18 %1 = getelementptr [11 x fp128], [11 x fp128]* @ldoubles, i32 0, i32 2
19 store volatile fp128 %b, fp128* %1 19 store volatile fp128 %b, fp128* %1
20 %2 = getelementptr [11 x fp128]* @ldoubles, i32 0, i32 3 20 %2 = getelementptr [11 x fp128], [11 x fp128]* @ldoubles, i32 0, i32 3
21 store volatile fp128 %c, fp128* %2 21 store volatile fp128 %c, fp128* %2
22 %3 = getelementptr [11 x fp128]* @ldoubles, i32 0, i32 4 22 %3 = getelementptr [11 x fp128], [11 x fp128]* @ldoubles, i32 0, i32 4
23 store volatile fp128 %d, fp128* %3 23 store volatile fp128 %d, fp128* %3
24 %4 = getelementptr [11 x fp128]* @ldoubles, i32 0, i32 5 24 %4 = getelementptr [11 x fp128], [11 x fp128]* @ldoubles, i32 0, i32 5
25 store volatile fp128 %e, fp128* %4 25 store volatile fp128 %e, fp128* %4
26 ret void 26 ret void
27 } 27 }
28 28
29 ; ALL-LABEL: ldouble_args: 29 ; ALL-LABEL: ldouble_args: