1 ! Test -emit-obj (RISC-V 64)
3 ! REQUIRES: riscv-registered-target
5 ! RUN: %flang_fc1 -triple riscv64-unknown-linux-gnu \
6 ! RUN: -target-feature +d -target-feature +c -emit-obj %s -o - | \
7 ! RUN: llvm-readobj -h - | FileCheck %s
9 ! RUN: %flang --target=riscv64-unknown-linux-gnu -c %s -o - | \
10 ! RUN: llvm-readobj -h - | FileCheck %s
12 ! If Flang failed to emit target-feature info, then Flags will be 0x0.
13 ! CHECK: Arch: riscv64
14 ! CHECK: Flags [ (0x5)
15 ! CHECK-NEXT: EF_RISCV_FLOAT_ABI_DOUBLE (0x4)
16 ! CHECK-NEXT: EF_RISCV_RVC (0x1)