llvm.org GIT mirror llvm / 00877fc
Add a testcase for i256 add. i256 isn't fully supported in codegen right now, but add and subtract work. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57260 91177308-0d34-0410-b5e6-96231b3b80d8 Dan Gohman 11 years ago
1 changed file(s) with 18 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=x86 > %t
1 ; RUN: grep adcl %t | count 7
2 ; RUN: grep sbbl %t | count 7
3
4 define void @add(i256* %p, i256* %q) nounwind {
5 %a = load i256* %p
6 %b = load i256* %q
7 %c = add i256 %a, %b
8 store i256 %c, i256* %p
9 ret void
10 }
11 define void @sub(i256* %p, i256* %q) nounwind {
12 %a = load i256* %p
13 %b = load i256* %q
14 %c = sub i256 %a, %b
15 store i256 %c, i256* %p
16 ret void
17 }