Dale Johannesen | b4ac285 | 2010-11-18 01:35:23 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=nehalem | grep movups | count 5 |
Evan Cheng | a5e1362 | 2011-01-07 19:35:30 +0000 | [diff] [blame^] | 2 | ; RUN: llc < %s -mtriple=i386-apple-darwin -mcpu=core2 | grep movl | count 20 |
| 3 | ; RUN: llc < %s -mtriple=x86_64-apple-darwin -mcpu=core2 | grep movq | count 10 |
Dan Gohman | bcda285 | 2008-04-16 01:32:32 +0000 | [diff] [blame] | 4 | |
Evan Cheng | 1887c1c | 2008-08-21 21:00:15 +0000 | [diff] [blame] | 5 | define void @bork() nounwind { |
Dan Gohman | bcda285 | 2008-04-16 01:32:32 +0000 | [diff] [blame] | 6 | entry: |
Evan Cheng | 1887c1c | 2008-08-21 21:00:15 +0000 | [diff] [blame] | 7 | call void @llvm.memset.i64( i8* null, i8 0, i64 80, i32 4 ) |
| 8 | ret void |
Dan Gohman | bcda285 | 2008-04-16 01:32:32 +0000 | [diff] [blame] | 9 | } |
| 10 | |
| 11 | declare void @llvm.memset.i64(i8*, i8, i64, i32) nounwind |
| 12 | |