[obj2yaml] - Fix a comment. NFC.
[llvm-complete.git] / test / MC / RISCV / target-abi-valid.s
blobdab4420d0248cc276369f196cd7ab57159fd46bc
1 # RUN: llvm-mc -triple=riscv32 -filetype=obj < %s \
2 # RUN: | llvm-readobj --file-headers - \
3 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
4 # RUN: llvm-mc -triple=riscv32 -target-abi ilp32 -filetype=obj < %s \
5 # RUN: | llvm-readobj --file-headers - \
6 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
7 # RUN: llvm-mc -triple=riscv32 -mattr=+f -target-abi ilp32 -filetype=obj < %s \
8 # RUN: | llvm-readobj --file-headers - \
9 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
10 # RUN: llvm-mc -triple=riscv32 -mattr=+d -target-abi ilp32 -filetype=obj < %s \
11 # RUN: | llvm-readobj --file-headers - \
12 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
13 # RUN: llvm-mc -triple=riscv64 -filetype=obj < %s \
14 # RUN: | llvm-readobj --file-headers - \
15 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
16 # RUN: llvm-mc -triple=riscv64 -target-abi lp64 -filetype=obj < %s \
17 # RUN: | llvm-readobj --file-headers - \
18 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
19 # RUN: llvm-mc -triple=riscv64 -mattr=+f -target-abi lp64 -filetype=obj < %s \
20 # RUN: | llvm-readobj --file-headers - \
21 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
22 # RUN: llvm-mc -triple=riscv64 -mattr=+d -target-abi lp64 -filetype=obj < %s \
23 # RUN: | llvm-readobj --file-headers - \
24 # RUN: | FileCheck -check-prefix=CHECK-NONE %s
26 # RUN: llvm-mc -triple=riscv32 -mattr=+f -target-abi ilp32f -filetype=obj < %s \
27 # RUN: | llvm-readobj --file-headers - \
28 # RUN: | FileCheck -check-prefix=CHECK-FLOAT-SINGLE %s
29 # RUN: llvm-mc -triple=riscv32 -mattr=+d -target-abi ilp32f -filetype=obj < %s \
30 # RUN: | llvm-readobj --file-headers - \
31 # RUN: | FileCheck -check-prefix=CHECK-FLOAT-SINGLE %s
32 # RUN: llvm-mc -triple=riscv64 -mattr=+f -target-abi lp64f -filetype=obj < %s \
33 # RUN: | llvm-readobj --file-headers - \
34 # RUN: | FileCheck -check-prefix=CHECK-FLOAT-SINGLE %s
35 # RUN: llvm-mc -triple=riscv64 -mattr=+d -target-abi lp64f -filetype=obj < %s \
36 # RUN: | llvm-readobj --file-headers - \
37 # RUN: | FileCheck -check-prefix=CHECK-FLOAT-SINGLE %s
39 # RUN: llvm-mc -triple=riscv32 -mattr=+d -target-abi ilp32d -filetype=obj < %s \
40 # RUN: | llvm-readobj --file-headers - \
41 # RUN: | FileCheck -check-prefix=CHECK-FLOAT-DOUBLE %s
42 # RUN: llvm-mc -triple=riscv64 -mattr=+d -target-abi lp64d -filetype=obj < %s \
43 # RUN: | llvm-readobj --file-headers - \
44 # RUN: | FileCheck -check-prefix=CHECK-FLOAT-DOUBLE %s
46 # RUN: llvm-mc -triple=riscv32 -target-abi ilp32e -filetype=obj < %s \
47 # RUN: | llvm-readobj --file-headers - \
48 # RUN: | FileCheck -check-prefix=CHECK-RVE %s
50 # CHECK-NONE: Flags [ (0x0)
51 # CHECK-NONE-NEXT: ]
53 # CHECK-FLOAT-SINGLE: Flags [ (0x2)
54 # CHECK-FLOAT-SINGLE-NEXT: EF_RISCV_FLOAT_ABI_SINGLE (0x2)
55 # CHECK-FLOAT-SINGLE-NEXT: ]
57 # CHECK-FLOAT-DOUBLE: Flags [ (0x4)
58 # CHECK-FLOAT-DOUBLE-NEXT: EF_RISCV_FLOAT_ABI_DOUBLE (0x4)
59 # CHECK-FLOAT-DOUBLE-NEXT: ]
61 # CHECK-RVE: Flags [ (0x8)
62 # CHECK-RVE-NEXT: EF_RISCV_RVE (0x8)
63 # CHECK-RVE-NEXT: ]
65 nop