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: |
Chris Lattner | b85e4eb | 2011-06-18 06:05:24 +0000 | [diff] [blame^] | 7 | call void @llvm.memset.p0i8.i64(i8* null, i8 0, i64 80, i32 4, i1 false) |
| 8 | ret void |
Dan Gohman | bcda285 | 2008-04-16 01:32:32 +0000 | [diff] [blame] | 9 | } |
| 10 | |
Chris Lattner | b85e4eb | 2011-06-18 06:05:24 +0000 | [diff] [blame^] | 11 | declare void @llvm.memset.p0i8.i64(i8* nocapture, i8, i64, i32, i1) nounwind |