• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
51// RUN: %clang -target mips-linux-gnu -### -fintegrated-as -c %s -Wa,-mips1 2>&1 | \
52// RUN:   FileCheck -check-prefix=MIPS1 %s
53// MIPS1: -cc1as
54// 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 %s
58// MIPS2: -cc1as
59// 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 %s
63// MIPS3: -cc1as
64// 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 %s
68// MIPS4: -cc1as
69// 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 %s
73// MIPS5: -cc1as
74// 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 %s
78// MIPS32: -cc1as
79// 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 %s
83// MIPS32R2: -cc1as
84// 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 %s
88// MIPS32R3: -cc1as
89// 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 %s
93// MIPS32R5: -cc1as
94// 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 %s
98// MIPS32R6: -cc1as
99// 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 %s
103// MIPS64: -cc1as
104// 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 %s
108// MIPS64R2: -cc1as
109// 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 %s
113// MIPS64R3: -cc1as
114// 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 %s
118// MIPS64R5: -cc1as
119// 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 %s
123// MIPS64R6: -cc1as
124// 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 %s
128// MIPS64R2-MIPS4: -cc1as
129// 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 %s
135// MIPS64-MIPS32-MIPS32R2: -cc1as
136// 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