Evan Cheng | 86db205 | 2007-08-16 23:51:28 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin | grep and | count 1 |
| 2 | ; RUN: llvm-as < %s | llc -march=x86-64 -mtriple=i686-pc-linux | grep and | count 3 |
Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 3 | |
| 4 | declare void @bar(<2 x i64>* %n) |
| 5 | |
| 6 | define void @foo(i32 %h) { |
| 7 | %p = alloca <2 x i64>, i32 %h |
| 8 | call void @bar(<2 x i64>* %p) |
| 9 | ret void |
| 10 | } |
Evan Cheng | 86db205 | 2007-08-16 23:51:28 +0000 | [diff] [blame^] | 11 | |
| 12 | define void @foo2(i32 %h) { |
| 13 | %p = alloca <2 x i64>, i32 %h, align 32 |
| 14 | call void @bar(<2 x i64>* %p) |
| 15 | ret void |
| 16 | } |