-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PowerPC]perform bitcast lowering only at 64 bit
Perform bitcast lowering requires 64-bit to be native supported, However this is not true on 32-bit targets. Explicitly require 64-bit target. Fixes #92233
- Loading branch information
Chen Zheng
committed
May 20, 2024
1 parent
dd8cb3d
commit 2143b7c
Showing
2 changed files
with
20 additions
and
1 deletion.
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
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,19 @@ | ||
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 | ||
; RUN: llc -mcpu=pwr9 -verify-machineinstrs < %s -mtriple=powerpc-unknown-linux-gnu | FileCheck %s | ||
|
||
define internal fp128 @f(i128 %v) nounwind { | ||
; CHECK-LABEL: f: | ||
; CHECK: # %bb.0: # %entry | ||
; CHECK-NEXT: stwu 1, -32(1) | ||
; CHECK-NEXT: stw 6, 28(1) | ||
; CHECK-NEXT: stw 5, 24(1) | ||
; CHECK-NEXT: stw 4, 20(1) | ||
; CHECK-NEXT: stw 3, 16(1) | ||
; CHECK-NEXT: lxv 34, 16(1) | ||
; CHECK-NEXT: addi 1, 1, 32 | ||
; CHECK-NEXT: blr | ||
entry: | ||
%cast = bitcast i128 %v to fp128 | ||
ret fp128 %cast | ||
} | ||
|