brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.6 KiB · 0b4da02 Raw
30 lines · plain
1! Ensure argument -fconvert=<value> accepts all relevant options and produces an2! error if an invalid value is specified.3 4!--------------------------5! FLANG DRIVER (flang)6!--------------------------7! RUN: %flang -### -fconvert=unknown %s  2>&1 | FileCheck %s --check-prefix=VALID8! RUN: %flang -### -fconvert=native %s  2>&1 | FileCheck %s --check-prefix=VALID9! RUN: %flang -### -fconvert=little-endian %s  2>&1 | FileCheck %s --check-prefix=VALID10! RUN: %flang -### -fconvert=big-endian %s  2>&1 | FileCheck %s --check-prefix=VALID11! RUN: %flang -### -fconvert=swap %s  2>&1 | FileCheck %s --check-prefix=VALID12! RUN: not %flang -fconvert=foobar %s  2>&1 | FileCheck %s --check-prefix=INVALID13 14!-----------------------------------------15! FRONTEND FLANG DRIVER (flang -fc1)16!-----------------------------------------17! RUN: %flang_fc1 -emit-mlir -fconvert=unknown %s -o - | FileCheck %s --check-prefix=VALID_FC118! RUN: %flang_fc1 -emit-mlir -fconvert=native %s -o - | FileCheck %s --check-prefix=VALID_FC119! RUN: %flang_fc1 -emit-mlir -fconvert=little-endian %s -o - | FileCheck %s --check-prefix=VALID_FC120! RUN: %flang_fc1 -emit-mlir -fconvert=big-endian %s -o - | FileCheck %s --check-prefix=VALID_FC121! RUN: %flang_fc1 -emit-mlir -fconvert=swap %s -o - | FileCheck %s --check-prefix=VALID_FC122! RUN: not %flang_fc1 -fconvert=foobar %s  2>&1 | FileCheck %s --check-prefix=INVALID23 24! Only test that the command executes without error. Correct handling of each25! option is handled in Lowering tests.26! VALID: -fconvert27! VALID_FC1: module28 29! INVALID: error: invalid value 'foobar' in '-fconvert=foobar'30