diff options
Diffstat (limited to 'test/wasm/compress-relocs.ll')
| -rw-r--r-- | test/wasm/compress-relocs.ll | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/wasm/compress-relocs.ll b/test/wasm/compress-relocs.ll new file mode 100644 index 0000000000000..b137d5abd43e3 --- /dev/null +++ b/test/wasm/compress-relocs.ll @@ -0,0 +1,22 @@ +; RUN: llc -filetype=obj %p/Inputs/call-indirect.ll -o %t2.o +; RUN: llc -filetype=obj %s -o %t.o +; RUN: wasm-ld -o %t.wasm %t2.o %t.o +; RUN: obj2yaml %t.wasm | FileCheck %s + +; RUN: wasm-ld -O2 -o %t-compressed.wasm %t2.o %t.o +; RUN: obj2yaml %t-compressed.wasm | FileCheck %s -check-prefix=COMPRESS + +target triple = "wasm32-unknown-unknown-wasm" + +define i32 @foo() { +entry: + ret i32 2 +} + +define void @_start() local_unnamed_addr { +entry: + ret void +} + +; CHECK: Body: 4100280284888080002100410028028088808000118080808000001A2000118180808000001A0B +; COMPRESS: Body: 41002802840821004100280280081100001A20001101001A0B |
