diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-01-06 14:34:25 -0500 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-01-06 14:34:25 -0500 |
commit | ea5e4f70785f3a8f3039e1d59ba4378caa665ed0 (patch) | |
tree | 98cc0b310c0b52584dc2e2ac03645cf54a10f10c /test/llvm_autogenerated/inline-asm.s | |
parent | b376986e36c7ba9bb85bb558be54842280633877 (diff) | |
parent | 9099f5020db191e0189f5b7b9784f721fcc4d29f (diff) | |
download | binaryen-ea5e4f70785f3a8f3039e1d59ba4378caa665ed0.tar.gz binaryen-ea5e4f70785f3a8f3039e1d59ba4378caa665ed0.tar.bz2 binaryen-ea5e4f70785f3a8f3039e1d59ba4378caa665ed0.zip |
Merge pull request #69 from WebAssembly/import-wasmate-tests
Import wasmate tests
Diffstat (limited to 'test/llvm_autogenerated/inline-asm.s')
-rw-r--r-- | test/llvm_autogenerated/inline-asm.s | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/test/llvm_autogenerated/inline-asm.s b/test/llvm_autogenerated/inline-asm.s new file mode 100644 index 000000000..10a43371c --- /dev/null +++ b/test/llvm_autogenerated/inline-asm.s @@ -0,0 +1,103 @@ + .text + .file "/s/llvm/llvm/test/CodeGen/WebAssembly/inline-asm.ll" + .globl foo + .type foo,@function +foo: + .param i32 + .result i32 + #APP + # $0 = aaa($0) + #NO_APP + return $0 +func_end0: + .size foo, func_end0-foo + + .globl bar + .type bar,@function +bar: + .param i32, i32 + #APP + # 0($1) = bbb(0($0)) + #NO_APP + return +func_end1: + .size bar, func_end1-bar + + .globl imm + .type imm,@function +imm: + .result i32 + .local i32 + #APP + # $0 = ccc(42) + #NO_APP + return $0 +func_end2: + .size imm, func_end2-imm + + .globl foo_i64 + .type foo_i64,@function +foo_i64: + .param i64 + .result i64 + #APP + # $0 = aaa($0) + #NO_APP + return $0 +func_end3: + .size foo_i64, func_end3-foo_i64 + + .globl X_i16 + .type X_i16,@function +X_i16: + .param i32 + .local i32 + #APP + foo $1 + #NO_APP + i32.store16 $discard=, 0($0), $1 + return +func_end4: + .size X_i16, func_end4-X_i16 + + .globl X_ptr + .type X_ptr,@function +X_ptr: + .param i32 + .local i32 + #APP + foo $1 + #NO_APP + i32.store $discard=, 0($0), $1 + return +func_end5: + .size X_ptr, func_end5-X_ptr + + .globl funcname + .type funcname,@function +funcname: + #APP + foo funcname + #NO_APP + return +func_end6: + .size funcname, func_end6-funcname + + .globl varname + .type varname,@function +varname: + #APP + foo gv+37 + #NO_APP + return +func_end7: + .size varname, func_end7-varname + + .type gv,@object + .bss + .globl gv +gv: + .size gv, 0 + + + .section ".note.GNU-stack","",@progbits |