mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
[WebAssembly] Make bogus inline asm strings in tests be comments.
These tests aren't testing that the result is valid syntax; they're testing that the compiler emits the inline asm operands correctly. llvm-svn: 253469
This commit is contained in:
parent
91afe89691
commit
4fea4d67f0
@ -9,12 +9,12 @@ target triple = "wasm32-unknown-unknown"
|
||||
; CHECK-NEXT: .param i32{{$}}
|
||||
; CHECK-NEXT: .result i32{{$}}
|
||||
; CHECK-NEXT: #APP{{$}}
|
||||
; CHECK-NEXT: $0 = aaa($0){{$}}
|
||||
; CHECK-NEXT: # $0 = aaa($0){{$}}
|
||||
; CHECK-NEXT: #NO_APP{{$}}
|
||||
; CHECK-NEXT: return $0{{$}}
|
||||
define i32 @foo(i32 %r) {
|
||||
entry:
|
||||
%0 = tail call i32 asm sideeffect "$0 = aaa($1)", "=r,r"(i32 %r) #0, !srcloc !0
|
||||
%0 = tail call i32 asm sideeffect "# $0 = aaa($1)", "=r,r"(i32 %r) #0, !srcloc !0
|
||||
ret i32 %0
|
||||
}
|
||||
|
||||
@ -22,12 +22,12 @@ entry:
|
||||
; CHECK-NEXT: .param i32{{$}}
|
||||
; CHECK-NEXT: .param i32{{$}}
|
||||
; CHECK-NEXT: #APP{{$}}
|
||||
; CHECK-NEXT: $1 = bbb($0){{$}}
|
||||
; CHECK-NEXT: # $1 = bbb($0){{$}}
|
||||
; CHECK-NEXT: #NO_APP{{$}}
|
||||
; CHECK-NEXT: return{{$}}
|
||||
define void @bar(i32* %r, i32* %s) {
|
||||
entry:
|
||||
tail call void asm sideeffect "$0 = bbb($1)", "=*m,*m"(i32* %s, i32* %r) #0, !srcloc !1
|
||||
tail call void asm sideeffect "# $0 = bbb($1)", "=*m,*m"(i32* %s, i32* %r) #0, !srcloc !1
|
||||
ret void
|
||||
}
|
||||
|
||||
@ -35,12 +35,12 @@ entry:
|
||||
; CHECK-NEXT: .result i32{{$}}
|
||||
; CHECK-NEXT: .local i32{{$}}
|
||||
; CHECK-NEXT: #APP{{$}}
|
||||
; CHECK-NEXT: $0 = ccc(42){{$}}
|
||||
; CHECK-NEXT: # $0 = ccc(42){{$}}
|
||||
; CHECK-NEXT: #NO_APP{{$}}
|
||||
; CHECK-NEXT: return $0{{$}}
|
||||
define i32 @imm() {
|
||||
entry:
|
||||
%0 = tail call i32 asm sideeffect "$0 = ccc($1)", "=r,i"(i32 42) #0, !srcloc !2
|
||||
%0 = tail call i32 asm sideeffect "# $0 = ccc($1)", "=r,i"(i32 42) #0, !srcloc !2
|
||||
ret i32 %0
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user