mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
[NVPTX] Select -1 instead of 1 when anyextend'ing i1 types
This makes it more consistent with the ZeroOrNegativeOneBooleanContent flag git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f51a22e815
commit
b206498b95
@ -2294,11 +2294,11 @@ def : Pat<(i64 (zext Int1Regs:$a)),
|
||||
|
||||
// anyext i1
|
||||
def : Pat<(i16 (anyext Int1Regs:$a)),
|
||||
(SELP_u16ii 1, 0, Int1Regs:$a)>;
|
||||
(SELP_u16ii -1, 0, Int1Regs:$a)>;
|
||||
def : Pat<(i32 (anyext Int1Regs:$a)),
|
||||
(SELP_u32ii 1, 0, Int1Regs:$a)>;
|
||||
(SELP_u32ii -1, 0, Int1Regs:$a)>;
|
||||
def : Pat<(i64 (anyext Int1Regs:$a)),
|
||||
(SELP_u64ii 1, 0, Int1Regs:$a)>;
|
||||
(SELP_u64ii -1, 0, Int1Regs:$a)>;
|
||||
|
||||
// sext i16
|
||||
def : Pat<(i32 (sext Int16Regs:$a)),
|
||||
|
Loading…
x
Reference in New Issue
Block a user