blob: 280ed6b1b33baa7505d47b975149e57db9367251 [file] [log] [blame]
Dan Gohman00877fc2008-10-07 20:39:12 +00001; RUN: llvm-as < %s | llc -march=x86 > %t
2; RUN: grep adcl %t | count 7
3; RUN: grep sbbl %t | count 7
4
5define void @add(i256* %p, i256* %q) nounwind {
6 %a = load i256* %p
7 %b = load i256* %q
8 %c = add i256 %a, %b
9 store i256 %c, i256* %p
10 ret void
11}
12define void @sub(i256* %p, i256* %q) nounwind {
13 %a = load i256* %p
14 %b = load i256* %q
15 %c = sub i256 %a, %b
16 store i256 %c, i256* %p
17 ret void
18}