Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Extend boolean arguments to inline-asm according to getBooleanType
Differential Revision: https://reviews.llvm.org/D60208 llvm-svn: 357615
- Loading branch information
Krzysztof Parzyszek
committed
Apr 3, 2019
1 parent
27a83e9
commit 4841643
Showing
2 changed files
with
22 additions
and
2 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,15 @@ | ||
; RUN: llc -mtriple=x86_64-unknown-linux-gnu < %s | FileCheck %s | ||
|
||
; Make sure that boolean immediates are properly (zero) extended. | ||
; CHECK: .Ltmp[[N:[0-9]+]]: | ||
; CHECK-NEXT: .quad (42+1)-.Ltmp[[N]] | ||
|
||
target triple = "x86_64-unknown-linux-gnu" | ||
|
||
define i32 @foo() #0 { | ||
entry: | ||
tail call void asm sideeffect ".quad 42 + ${0:c} - .\0A\09", "i,~{dirflag},~{fpsr},~{flags}"(i1 true) #0 | ||
ret i32 1 | ||
} | ||
|
||
attributes #0 = { nounwind } |