-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asm mode: allow constants to be deleted
they have to be somewhere in the executable if they are not internal but they can be validated all at once out-of-band
- Loading branch information
1 parent
19a9994
commit 471b4e4
Showing
3 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
; TEST-ARGS: -tgt-is-asm | ||
|
||
@bar = constant i32 6 | ||
|
||
define <4 x i32> @f(ptr %RP) { | ||
%LGV = load i32, ptr @bar, align 4 | ||
ret <4 x i32> zeroinitializer | ||
} |
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,5 @@ | ||
;@bar = constant i32 6 | ||
|
||
define <4 x i32> @f(ptr %RP) { | ||
ret <4 x i32> zeroinitializer | ||
} |