Skip to content

Commit fd80d00

Browse files
committed
Change set of reserved bits
1 parent a47c55f commit fd80d00

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ enum Rounding {
524524
const unsigned RoundingBitsPos = 22;
525525

526526
// Reserved bits should be preserved when modifying FPCR.
527-
const uint64_t ReservedFPControlBits = 0xfe0fe0f8;
527+
const uint64_t ReservedFPControlBits = 0xfffffffff80040f8;
528528

529529
// Registers used to pass function arguments.
530530
ArrayRef<MCPhysReg> getGPRArgRegs();

llvm/test/CodeGen/AArch64/fpmode.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ entry:
4949
define void @func_reset_fpmode() #0 {
5050
; DAG-LABEL: func_reset_fpmode:
5151
; DAG: // %bb.0: // %entry
52-
; DAG-NEXT: mov w9, #57592 // =0xe0f8
52+
; DAG-NEXT: mov x9, #-48904 // =0xffffffffffff40f8
5353
; DAG-NEXT: mrs x8, FPCR
54-
; DAG-NEXT: movk w9, #65039, lsl #16
54+
; DAG-NEXT: movk x9, #63488, lsl #16
5555
; DAG-NEXT: and x8, x8, x9
5656
; DAG-NEXT: msr FPCR, x8
5757
; DAG-NEXT: ret

0 commit comments

Comments
 (0)