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 |
Clement Courbet | a7c233f | 2017-04-21 09:20:44 +0000 | [diff] [blame^] | 3 | ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=haswell < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=HASWELL |
| 4 | ; RUN: llc -mtriple=x86_64-linux-gnu -mcpu=generic < %s -o - | FileCheck %s --check-prefix=ALL --check-prefix=GENERIC |
Clement Courbet | 1ce3b82 | 2017-04-21 09:20:39 +0000 | [diff] [blame] | 5 | |
| 6 | %struct.large = type { [4096 x i8] } |
| 7 | |
| 8 | declare void @foo(%struct.large* align 8 byval) nounwind |
| 9 | |
| 10 | define void @test1(%struct.large* nocapture %x) nounwind { |
| 11 | call void @foo(%struct.large* align 8 byval %x) |
| 12 | ret void |
| 13 | |
| 14 | ; ALL-LABEL: test1: |
| 15 | ; NOFAST: rep;movsq |
Clement Courbet | a7c233f | 2017-04-21 09:20:44 +0000 | [diff] [blame^] | 16 | ; GENERIC: rep;movsq |
Clement Courbet | 1ce3b82 | 2017-04-21 09:20:39 +0000 | [diff] [blame] | 17 | ; FAST: rep;movsb |
Clement Courbet | a7c233f | 2017-04-21 09:20:44 +0000 | [diff] [blame^] | 18 | ; HASWELL: rep;movsb |
Clement Courbet | 1ce3b82 | 2017-04-21 09:20:39 +0000 | [diff] [blame] | 19 | } |