Sam Clegg fd1c894a4a [lld][WebAssembly] Convert some lld tests to assembly
When we originally wrote these tests we didn't have a stable and
fleshed out assembly format.  Now we do so we should prefer that
over llvm ir for lld tests to avoid including more part of llvm
than necessary in order to run the test.

This change converts just 30 out of about 130 test files. More to
come when I have some more time.

Differential Revision: https://reviews.llvm.org/D80361
2020-05-28 16:52:01 -07:00

19 lines
357 B
ArmAsm

# asm generated by clang from the following C code:
# void puts(const char*);
# void hello() { puts("hello\n"); }
.globl hello
hello:
.functype hello () -> ()
i32.const hello_str
call puts
end_function
.section .rodata.hello_str,"",@
.globl hello_str
hello_str:
.asciz "hello\n"
.size hello_str, 7
.functype puts (i32) -> ()