1// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s 2>&1 | \ 2// RUN: FileCheck -check-prefix=TRAP-DEFAULT %s 3// TRAP-DEFAULT: -cc1as 4// TRAP-DEFAULT-NOT: "-target-feature" "-use-tcc-in-div" 5 6// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,--trap 2>&1 | \ 7// RUN: FileCheck -check-prefix=TRAP-ON %s 8// TRAP-ON: -cc1as 9// TRAP-ON: "-target-feature" "+use-tcc-in-div" 10 11// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,--break 2>&1 | \ 12// RUN: FileCheck -check-prefix=TRAP-OFF %s 13// TRAP-OFF: -cc1as 14// TRAP-OFF: "-target-feature" "-use-tcc-in-div" 15 16// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,--trap,--break 2>&1 | \ 17// RUN: FileCheck -check-prefix=TRAP-BOTH-TRAP-FIRST %s 18// TRAP-BOTH-TRAP-FIRST: -cc1as 19// TRAP-BOTH-TRAP-FIRST: "-target-feature" "+use-tcc-in-div" "-target-feature" "-use-tcc-in-div" 20 21// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,--break,--trap 2>&1 | \ 22// RUN: FileCheck -check-prefix=TRAP-BOTH-BREAK-FIRST %s 23// TRAP-BOTH-BREAK-FIRST: -cc1as 24// TRAP-BOTH-BREAK-FIRST: "-target-feature" "-use-tcc-in-div" "-target-feature" "+use-tcc-in-div" 25 26// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s 2>&1 | \ 27// RUN: FileCheck -check-prefix=MSOFT-FLOAT-DEFAULT %s 28// MSOFT-FLOAT-DEFAULT: -cc1as 29// MSOFT-FLOAT-DEFAULT-NOT: "-target-feature" "-soft-float" 30 31// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,-msoft-float 2>&1 | \ 32// RUN: FileCheck -check-prefix=MSOFT-FLOAT-ON %s 33// MSOFT-FLOAT-ON: -cc1as 34// MSOFT-FLOAT-ON: "-target-feature" "+soft-float" 35 36// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mhard-float 2>&1 | \ 37// RUN: FileCheck -check-prefix=MSOFT-FLOAT-OFF %s 38// MSOFT-FLOAT-OFF: -cc1as 39// MSOFT-FLOAT-OFF: "-target-feature" "-soft-float" 40 41// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,-msoft-float,-mhard-float 2>&1 | \ 42// RUN: FileCheck -check-prefix=MSOFT-FLOAT-BOTH-MSOFT-FLOAT-FIRST %s 43// MSOFT-FLOAT-BOTH-MSOFT-FLOAT-FIRST: -cc1as 44// MSOFT-FLOAT-BOTH-MSOFT-FLOAT-FIRST: "-target-feature" "+soft-float" "-target-feature" "-soft-float" 45 46// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mhard-float,-msoft-float 2>&1 | \ 47// RUN: FileCheck -check-prefix=MSOFT-FLOAT-BOTH-MHARD-FLOAT-FIRST %s 48// MSOFT-FLOAT-BOTH-MHARD-FLOAT-FIRST: -cc1as 49// MSOFT-FLOAT-BOTH-MHARD-FLOAT-FIRST: "-target-feature" "-soft-float" "-target-feature" "+soft-float" 50