Clement Courbet | 1ce3b82 | 2017-04-21 09:20:39 +0000 | [diff] [blame^] | 1 | ; 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 | |
| 6 | declare void @foo(%struct.large* align 8 byval) nounwind |
| 7 | |
| 8 | define 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 | } |