blob: 4bb022e933240c93cb2fb20e93fb78f401ed0987 [file] [log] [blame]
Clement Courbet1ce3b822017-04-21 09:20:39 +00001; RUN: llc -mtriple=x86_64-linux-gnu -mattr=-fast-string < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=NOFAST
2; RUN: llc -mtriple=x86_64-linux-gnu -mattr=+fast-string < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=FAST
3
4%struct.large = type { [4096 x i8] }
5
6declare void @foo(%struct.large* align 8 byval) nounwind
7
8define void @test1(%struct.large* nocapture %x) nounwind {
9 call void @foo(%struct.large* align 8 byval %x)
10 ret void
11
12; ALL-LABEL: test1:
13; NOFAST: rep;movsq
14; FAST: rep;movsb
15}