1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/test/CodeGen
Dylan McKay f2b2682fd1 [AVR] Fix codegen bug in 16-bit loads
Prior to this patch, the AVR::LDWRdPtr instruction was always lowered to
instructions of this pattern:

    ld  $GPR8, [PTR:XYZ]+
    ld  $GPR8, [PTR]+1

This has a problem; the [PTR] is incremented in-place once, but never
decremented.

Future uses of the same pointer will use the now clobbered value,
leading to the pointer being incorrect by an offset of one.

This patch modifies the expansion code of the LDWRdPtr pseudo
instruction so that the pointer variable is not silently clobbered in
future uses in the same live range.

Bug first reported by Keshav Kini.

Patch by Kaushik Phatak.

llvm-svn: 351673
2019-01-20 03:41:08 +00:00
..
AArch64 GlobalISel: Verify G_BITCAST 2019-01-18 21:04:59 +00:00
AMDGPU AMDGPU/GlobalISel: Legalize more types for select 2019-01-18 21:42:55 +00:00
ARC
ARM [ARM GlobalISel] Allow calls to varargs functions 2019-01-17 10:11:55 +00:00
AVR [AVR] Fix codegen bug in 16-bit loads 2019-01-20 03:41:08 +00:00
BPF [BPF] Fix .BTF.ext reloc type assigment issue 2019-01-08 16:36:06 +00:00
Generic [CodeGen] Fix bugs in LiveDebugVariables when debug labels are generated. 2019-01-18 07:17:09 +00:00
Hexagon Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
Inputs
Lanai
Mips [mips] Emit .reloc R_{MICRO}MIPS_JALR along with j(al)r(c) $25 2019-01-17 21:50:37 +00:00
MIR Revert r351584: "GlobalISel: Verify g_zextload and g_sextload" 2019-01-19 00:36:11 +00:00
MSP430 [MSP430] Emit a separate section for every interrupt vector 2019-01-16 14:03:41 +00:00
NVPTX Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
PowerPC Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
RISCV [RISCV] Add codegen support for RV64A 2019-01-17 10:04:39 +00:00
SPARC Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
SystemZ Remove irrelevant references to legacy git repositories from 2019-01-15 16:18:52 +00:00
Thumb Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
Thumb2 Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00
WebAssembly [WebAssembly] Add languages from debug info to producers section 2019-01-18 02:47:48 +00:00
WinCFGuard
WinEH [EH] Rename llvm.x86.seh.recoverfp intrinsic to llvm.eh.recoverfp 2019-01-16 00:37:13 +00:00
X86 [x86] add more movmsk tests; NFC 2019-01-18 20:42:12 +00:00
XCore Replace "no-frame-pointer-*" function attributes with "frame-pointer" 2019-01-14 10:55:55 +00:00