summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorDaniel Cederman <cederman@gaisler.com>2018-07-16 12:14:17 +0000
committerDaniel Cederman <cederman@gaisler.com>2018-07-16 12:14:17 +0000
commitc3d8002c2e1b41a05095f6a0f2e720fa9bb63c00 (patch)
treeab6579930e17321a84e81abd777d57218f7ba968 /llvm/lib/Target/Sparc
parente66a6f48e314c84d00e9580fa3d30fadb683dd11 (diff)
downloadbcm5719-llvm-c3d8002c2e1b41a05095f6a0f2e720fa9bb63c00.tar.gz
bcm5719-llvm-c3d8002c2e1b41a05095f6a0f2e720fa9bb63c00.zip
Avoid losing Hi part when expanding VAARG nodes on big endian machines
Summary: If the high part of the load is not used the offset to the next element will not be set correctly. For example, on Sparc V8, the following code will read val2 from offset 4 instead of 8. ``` int val = __builtin_va_arg(va, long long); int val2 = __builtin_va_arg(va, int); ``` Reviewers: jyknight Reviewed By: jyknight Subscribers: fedor.sergeev, jrtc27, llvm-commits Differential Revision: https://reviews.llvm.org/D48595 llvm-svn: 337161
Diffstat (limited to 'llvm/lib/Target/Sparc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud