-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
test run | ||
target x86_64 | ||
target aarch64 | ||
target aarch64 sign_return_address | ||
target aarch64 has_pauth sign_return_address | ||
target s390x | ||
|
||
|
||
function %libcall_ceilf32(f32) -> f32 { | ||
fn0 = %CeilF32(f32) -> f32 | ||
|
||
block0(v0: f32): | ||
v1 = call fn0(v0) | ||
return v1 | ||
} | ||
; run: %libcall_ceilf32(0x0.5) == 0x1.0 | ||
|
||
|
||
function %libcall_indirect_ceilf32(f32) -> f32 { | ||
fn0 = %CeilF32(f32) -> f32 | ||
; sig0 = (f32) -> f32 | ||
|
||
block0(v0: f32): | ||
v1 = func_addr.i64 fn0 | ||
v2 = call_indirect.i64 sig0, v1(v0) | ||
return v2 | ||
} | ||
; run: %libcall_indirect_ceilf32(0x0.5) == 0x1.0 |