-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix #976 (asm mode): ensure we always have ptr bytes when reading ints
since asm mode allows transparent type punning
- Loading branch information
1 parent
b84997c
commit bb48c93
Showing
2 changed files
with
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
target datalayout = "e-i64:64" | ||
|
||
@g = external global i64 | ||
|
||
define i64 @src() { | ||
%1 = load i64, ptr @g, align 16 | ||
ret i64 %1 | ||
} | ||
|
||
define i64 @tgt() { | ||
%1 = load i64, ptr @g | ||
ret i64 %1 | ||
} |
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