mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-29 23:12:55 +01:00
5885dc293c
ARM paired GPR COPY was being lowered to two MOVr without CC. This patch puts the CC back. My test is a reduction of the case where I encountered the issue, 64-bit atomics use paired GPRs. The issue only occurs with selectionDAG, FastISel doesn't encounter it so I didn't bother calling it. llvm-svn: 186226
18 lines
431 B
LLVM
18 lines
431 B
LLVM
; RUN: llc < %s -mtriple=armv7-apple-ios -verify-machineinstrs
|
|
; RUN: llc < %s -mtriple=armv7-linux-gnueabi -verify-machineinstrs
|
|
|
|
define void @f() {
|
|
%a = alloca i8, i32 8, align 8
|
|
%b = alloca i8, i32 8, align 8
|
|
|
|
%c = bitcast i8* %a to i64*
|
|
%d = bitcast i8* %b to i64*
|
|
|
|
store atomic i64 0, i64* %c seq_cst, align 8
|
|
store atomic i64 0, i64* %d seq_cst, align 8
|
|
|
|
%e = load atomic i64* %d seq_cst, align 8
|
|
|
|
ret void
|
|
}
|