forked from OSchip/llvm-project
[NVPTX] Select -1 instead of 1 when anyextend'ing i1 types
This makes it more consistent with the ZeroOrNegativeOneBooleanContent flag llvm-svn: 185179
This commit is contained in:
parent
af258be134
commit
8df08c73c6
|
@ -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…
Reference in New Issue