| 1 |
; RUN: llc < %s -mtriple=i686-unknown-linux-gnu -mattr=+sse2 | FileCheck %s --check-prefixes=A,B |
| 2 |
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --allow-unused-prefixes=true --check-prefixes=C,A,UNUSED |
| 3 |
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --allow-unused-prefixes=true --check-prefixe=A |
| 4 |
|
| 5 |
declare <2 x i64> @llvm.bswap.v2i64(<2 x i64>) |
| 6 |
|
| 7 |
define <2 x i64> @fold_v2i64() { |
| 8 |
; B-LABEL: fold_v2i64: |
| 9 |
; B: # %bb.0: # %entry |
| 10 |
; B-NEXT: movaps {{.*#+}} xmm0 = [0,4278190080,4294967295,4294967295] |
| 11 |
; B-NEXT: retl |
| 12 |
; |
| 13 |
; C-LABEL: fold_v2i64: |
| 14 |
; C: # %bb.0: # %entry |
| 15 |
; C-NEXT: movaps {{.*#+}} xmm0 = [18374686479671623680,18446744073709551615] |
| 16 |
; C-NEXT: retq |
| 17 |
entry: |
| 18 |
%r = call <2 x i64> @llvm.bswap.v2i64(<2 x i64> <i64 255, i64 -1>) |
| 19 |
ret <2 x i64> %r |
| 20 |
} |
| 21 |
|
| 22 |
declare <4 x i32> @llvm.bswap.v4i32(<4 x i32>) |
| 23 |
|
| 24 |
define <4 x i32> @test2(<4 x i32> %v) { |
| 25 |
%r = call <4 x i32> @llvm.bswap.v4i32(<4 x i32> %v) |
| 26 |
ret <4 x i32> %r |
| 27 |
} |
| 28 |
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line: |
| 29 |
; A: {{.*}} |
| 30 |
; UNUSED: {{.*}} |