1 // RUN: %clang -target armv7-unknown-unknown -### -fsyntax-only %s 2> %t \
2 // RUN:   -mno-global-merge
3 // RUN: FileCheck --check-prefix=CHECK-NGM-ARM < %t %s
4 
5 // RUN: %clang -target aarch64-unknown-unknown -### -fsyntax-only %s 2> %t \
6 // RUN:   -mno-global-merge
7 // RUN: FileCheck --check-prefix=CHECK-NGM-AARCH64 < %t %s
8 
9 // RUN: %clang -target x86_64-unknown-unknown -### -fsyntax-only %s 2> %t \
10 // RUN:   -mno-global-merge
11 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
12 
13 // CHECK-NGM-ARM: "-backend-option" "-arm-global-merge=false"
14 // CHECK-NGM-AARCH64: "-backend-option" "-aarch64-global-merge=false"
15 
16 // RUN: %clang -target armv7-unknown-unknown -### -fsyntax-only %s 2> %t \
17 // RUN:   -mglobal-merge
18 // RUN: FileCheck --check-prefix=CHECK-GM-ARM < %t %s
19 
20 // RUN: %clang -target aarch64-unknown-unknown -### -fsyntax-only %s 2> %t \
21 // RUN:   -mglobal-merge
22 // RUN: FileCheck --check-prefix=CHECK-GM-AARCH64 < %t %s
23 
24 // RUN: %clang -target x86_64-unknown-unknown -### -fsyntax-only %s 2> %t \
25 // RUN:   -mglobal-merge
26 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
27 
28 // CHECK-GM-ARM: "-backend-option" "-arm-global-merge=true"
29 // CHECK-GM-AARCH64: "-backend-option" "-aarch64-global-merge=true"
30 
31 // RUN: %clang -target armv7-unknown-unknown -### -fsyntax-only %s 2> %t
32 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
33 
34 // RUN: %clang -target aarch64-unknown-unknown -### -fsyntax-only %s 2> %t
35 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
36 
37 // RUN: %clang -target x86_64-unknown-unknown -### -fsyntax-only %s 2> %t
38 // RUN: FileCheck --check-prefix=CHECK-NONE < %t %s
39 
40 // CHECK-NONE-NOT: -global-merge=
41