Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for clang -fno-zero-initialized-in-bss and llc -nozero-init…
…ialized-in-bss And rename the CC1 option.
- Loading branch information
Showing
6 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// RUN: %clang -### %s -c -fzero-initialized-in-bss 2>&1 | FileCheck %s --check-prefix=NO | ||
// RUN: %clang -### %s -c 2>&1 | FileCheck %s --check-prefix=NO | ||
|
||
// NO-NOT: -fno-zero-initialized-in-bss | ||
|
||
// RUN: %clang -### %s -c -fzero-initialized-in-bss -fno-zero-initialized-in-bss 2>&1 | FileCheck %s | ||
|
||
// CHECK: -fno-zero-initialized-in-bss |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
; RUN: llc < %s -mtriple=x86_64 | FileCheck %s --check-prefix=BSS | ||
|
||
; BSS: .bss | ||
; BSS-NEXT: .globl a | ||
; BSS: .section .tbss,"awT",@nobits | ||
; BSS-NEXT: .globl b | ||
|
||
; RUN: llc < %s -mtriple=x86_64 -nozero-initialized-in-bss | FileCheck %s --check-prefix=DATA | ||
|
||
; DATA: .data | ||
; DATA-NEXT: .globl a | ||
; DATA: .section .tdata,"awT",@progbits | ||
; DATA-NEXT: .globl b | ||
|
||
@a = global i32 0 | ||
@b = thread_local global i32 0 |