Commit 60bb450
authored
[X86] LowerAsmOperandForConstraint - ensure we treat L constraint immediates as signed constants (#171098)
getTargetConstant no longer tolerates sign-extended values that can't be
represented by the appropriate APInt bitwidth, which defaults to
unsigned behaviour.
Fixes #1660581 parent c590b35 commit 60bb450
File tree
2 files changed
+24
-6
lines changed- llvm
- lib/Target/X86
- test/CodeGen/X86
2 files changed
+24
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61974 | 61974 | | |
61975 | 61975 | | |
61976 | 61976 | | |
61977 | | - | |
61978 | | - | |
| 61977 | + | |
| 61978 | + | |
61979 | 61979 | | |
61980 | 61980 | | |
61981 | 61981 | | |
| |||
62013 | 62013 | | |
62014 | 62014 | | |
62015 | 62015 | | |
62016 | | - | |
| 62016 | + | |
| 62017 | + | |
62017 | 62018 | | |
62018 | 62019 | | |
62019 | 62020 | | |
| |||
62062 | 62063 | | |
62063 | 62064 | | |
62064 | 62065 | | |
62065 | | - | |
62066 | | - | |
62067 | | - | |
| 62066 | + | |
| 62067 | + | |
| 62068 | + | |
| 62069 | + | |
| 62070 | + | |
62068 | 62071 | | |
62069 | 62072 | | |
62070 | 62073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
0 commit comments