19 lines · plain
1! Test -emit-obj (RISC-V 64)2 3! REQUIRES: riscv-registered-target4 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 %s8 9! RUN: %flang --target=riscv64-unknown-linux-gnu -c %s -o - | \10! RUN: llvm-readobj -h - | FileCheck %s11 12! If Flang failed to emit target-feature info, then Flags will be 0x0.13! CHECK: Arch: riscv6414! CHECK: Flags [ (0x5)15! CHECK-NEXT: EF_RISCV_FLOAT_ABI_DOUBLE (0x4)16! CHECK-NEXT: EF_RISCV_RVC (0x1)17! CHECK-NEXT: ]18end program19