141 lines · plain
1// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s 2>&1 | \2// RUN: FileCheck -check-prefix=TRAP-DEFAULT %s3// TRAP-DEFAULT: -cc1as4// 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 %s8// TRAP-ON: -cc1as9// 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 %s13// TRAP-OFF: -cc1as14// 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 %s18// TRAP-BOTH-TRAP-FIRST: -cc1as19// 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 %s23// TRAP-BOTH-BREAK-FIRST: -cc1as24// 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 %s28// MSOFT-FLOAT-DEFAULT: -cc1as29// 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 %s33// MSOFT-FLOAT-ON: -cc1as34// 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 %s38// MSOFT-FLOAT-OFF: -cc1as39// 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 %s43// MSOFT-FLOAT-BOTH-MSOFT-FLOAT-FIRST: -cc1as44// 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 %s48// MSOFT-FLOAT-BOTH-MHARD-FLOAT-FIRST: -cc1as49// MSOFT-FLOAT-BOTH-MHARD-FLOAT-FIRST: "-target-feature" "-soft-float" "-target-feature" "+soft-float"50 51// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips1 2>&1 | \52// RUN: FileCheck -check-prefix=MIPS1 %s53// MIPS1: -cc1as54// MIPS1: "-target-feature" "+mips1"55 56// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips2 2>&1 | \57// RUN: FileCheck -check-prefix=MIPS2 %s58// MIPS2: -cc1as59// MIPS2: "-target-feature" "+mips2"60 61// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips3 2>&1 | \62// RUN: FileCheck -check-prefix=MIPS3 %s63// MIPS3: -cc1as64// MIPS3: "-target-feature" "+mips3"65 66// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips4 2>&1 | \67// RUN: FileCheck -check-prefix=MIPS4 %s68// MIPS4: -cc1as69// MIPS4: "-target-feature" "+mips4"70 71// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips5 2>&1 | \72// RUN: FileCheck -check-prefix=MIPS5 %s73// MIPS5: -cc1as74// MIPS5: "-target-feature" "+mips5"75 76// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips32 2>&1 | \77// RUN: FileCheck -check-prefix=MIPS32 %s78// MIPS32: -cc1as79// MIPS32: "-target-feature" "+mips32"80 81// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips32r2 2>&1 | \82// RUN: FileCheck -check-prefix=MIPS32R2 %s83// MIPS32R2: -cc1as84// MIPS32R2: "-target-feature" "+mips32r2"85 86// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips32r3 2>&1 | \87// RUN: FileCheck -check-prefix=MIPS32R3 %s88// MIPS32R3: -cc1as89// MIPS32R3: "-target-feature" "+mips32r3"90 91// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips32r5 2>&1 | \92// RUN: FileCheck -check-prefix=MIPS32R5 %s93// MIPS32R5: -cc1as94// MIPS32R5: "-target-feature" "+mips32r5"95 96// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips32r6 2>&1 | \97// RUN: FileCheck -check-prefix=MIPS32R6 %s98// MIPS32R6: -cc1as99// MIPS32R6: "-target-feature" "+mips32r6"100 101// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64 2>&1 | \102// RUN: FileCheck -check-prefix=MIPS64 %s103// MIPS64: -cc1as104// MIPS64: "-target-feature" "+mips64"105 106// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64r2 2>&1 | \107// RUN: FileCheck -check-prefix=MIPS64R2 %s108// MIPS64R2: -cc1as109// MIPS64R2: "-target-feature" "+mips64r2"110 111// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64r3 2>&1 | \112// RUN: FileCheck -check-prefix=MIPS64R3 %s113// MIPS64R3: -cc1as114// MIPS64R3: "-target-feature" "+mips64r3"115 116// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64r5 2>&1 | \117// RUN: FileCheck -check-prefix=MIPS64R5 %s118// MIPS64R5: -cc1as119// MIPS64R5: "-target-feature" "+mips64r5"120 121// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64r6 2>&1 | \122// RUN: FileCheck -check-prefix=MIPS64R6 %s123// MIPS64R6: -cc1as124// MIPS64R6: "-target-feature" "+mips64r6"125 126// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64r2,-mips4 2>&1 | \127// RUN: FileCheck -check-prefix=MIPS64R2-MIPS4 %s128// MIPS64R2-MIPS4: -cc1as129// MIPS64R2-MIPS4-NOT: "-target-feature" "+mips64r2"130// MIPS64R2-MIPS4: "-target-feature" "+mips4"131// MIPS64R2-MIPS4-NOT: "-target-feature" "+mips64r2"132 133// RUN: %clang --target=mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips64,-mips32,-mips32r2 2>&1 | \134// RUN: FileCheck -check-prefix=MIPS64-MIPS32-MIPS32R2 %s135// MIPS64-MIPS32-MIPS32R2: -cc1as136// MIPS64-MIPS32-MIPS32R2-NOT: "-target-feature" "+mips64"137// MIPS64-MIPS32-MIPS32R2-NOT: "-target-feature" "+mips32"138// MIPS64-MIPS32-MIPS32R2: "-target-feature" "+mips32r2"139// MIPS64-MIPS32-MIPS32R2-NOT: "-target-feature" "+mips64"140// MIPS64-MIPS32-MIPS32R2-NOT: "-target-feature" "+mips32"141