Skip to content

Commit e0caefe

Browse files
committed
Use different intrinsic in wasm lld test
The issue this testing is now fixed for the half float intrinsics. Use a different one that still has the issue.
1 parent 410a945 commit e0caefe

File tree

4 files changed

+24
-26
lines changed

4 files changed

+24
-26
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-i128:128-f128:64-n32:64-S128-ni:1:10:20"
2+
target triple = "wasm32-unknown-emscripten"
3+
4+
define ptr @emscripten_return_address() {
5+
ret ptr null
6+
}

lld/test/wasm/lto/Inputs/libcall-truncsfhf2.ll

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
; RUN: llvm-as %s -o %t.o
2+
; RUN: llvm-as %p/Inputs/libcall-return-addr.ll -o %t.return-addr.o
3+
; RUN: rm -f %t.a
4+
; RUN: llvm-ar rcs %t.a %t.return-addr.o
5+
; RUN: not wasm-ld --export-all %t.o %t.a -o %t.wasm 2>&1 | FileCheck %s
6+
7+
target datalayout = "e-m:e-p:32:32-p10:8:8-p20:8:8-i64:64-i128:128-f128:64-n32:64-S128-ni:1:10:20"
8+
target triple = "wasm32-unknown-emscripten"
9+
10+
@g_ptr = global ptr null
11+
12+
define void @_start() {
13+
%addr = call ptr @llvm.returnaddress(i32 1)
14+
store ptr %addr, ptr @g_ptr
15+
ret void
16+
}
17+
18+
; CHECK: wasm-ld: error: {{.*}}return-addr.o): attempt to add bitcode file after LTO (emscripten_return_address)

lld/test/wasm/lto/libcall-truncsfhf2.ll

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)