blob: 32baff3dbe64520d0a3ae47f71f951ed7abf610b [file] [log] [blame]
Tim Northover9a6217b2014-05-27 16:50:09 +00001; RUN: llc -march=aarch64 < %s | FileCheck %s
2
3; CHECK: mrs [[NZCV_SAVE:x[0-9]+]], NZCV
4; CHECK: msr NZCV, [[NZCV_SAVE]]
5
6; DAG ends up with two uses for the flags from an ADCS node, which means they
7; must be saved for later.
8define void @f(i256* nocapture %a, i256* nocapture %b, i256* nocapture %cc, i256* nocapture %dd) nounwind uwtable noinline ssp {
9entry:
10 %c = load i256* %cc
11 %d = load i256* %dd
12 %add = add nsw i256 %c, %d
13 store i256 %add, i256* %a, align 8
14 %or = or i256 %c, 1606938044258990275541962092341162602522202993782792835301376
15 %add6 = add nsw i256 %or, %d
16 store i256 %add6, i256* %b, align 8
17 ret void
18}