Dan Gohman | 89fecc2 | 2008-10-07 20:39:12 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -march=x86 > %t |
2 | ; RUN: grep adcl %t | count 7 | ||||
3 | ; RUN: grep sbbl %t | count 7 | ||||
4 | |||||
5 | define 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 | } | ||||
12 | define 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 | } |