diff options
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 |