-
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.
LLVM semantics: alignment can be a non-power-of-2 if ptr == null
- Loading branch information
1 parent
cdf792b
commit ff9d8e8
Showing
3 changed files
with
18 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
; ERROR: Source is more defined than target | ||
|
||
define void @src(i32 %align) { | ||
call void @llvm.assume(i1 true) ["align"(ptr null, i32 5)] | ||
call void @llvm.assume(i1 true) ["align"(ptr null, i32 %align)] | ||
ret void | ||
} | ||
|
||
define void @tgt(i32 %align) { | ||
unreachable | ||
} | ||
|
||
declare void @llvm.assume(i1) |