llvm.org GIT mirror llvm / 94964bb
[WebAssembly] Add a test for inline-asm "m" constraints. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317711 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 2 years ago
1 changed file(s) with 13 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: not llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-locals -no-integrated-as
1
2 ; Test basic inline assembly "m" operands, which are unsupported. Pass
3 ; -no-integrated-as since these aren't actually valid assembly syntax.
4
5 target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
6 target triple = "wasm32-unknown-unknown-wasm"
7
8 define void @bar(i32* %r, i32* %s) {
9 entry:
10 tail call void asm sideeffect "# $0 = bbb($1)", "=*m,*m"(i32* %s, i32* %r) #0, !srcloc !1
11 ret void
12 }