blob: 5a7a7a7fe84a932a97475a7a6ad4b87090b9deea [file] [log] [blame]
Dan Gohman0a063102009-09-08 23:54:48 +00001; RUN: llc < %s -march=x86 > %t
Dan Gohman89fecc22008-10-07 20:39:12 +00002; 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}