brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 253716d Raw
31 lines · plain
1; RUN: llc < %s -mtriple=i686-unknown-linux-gnu -mattr=+sse2 | FileCheck %s --check-prefixes=A,B2; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --allow-unused-prefixes=true --check-prefixes=C,A,UNUSED3; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s --allow-unused-prefixes=true --check-prefixe=A4 5declare <2 x i64> @llvm.bswap.v2i64(<2 x i64>)6 7define <2 x i64> @fold_v2i64() {8; B-LABEL: fold_v2i64:9; B:       # %bb.0: # %entry10; B-NEXT:    movaps {{.*#+}} xmm0 = [0,4278190080,4294967295,4294967295]11; B-NEXT:    retl12;13; C-LABEL: fold_v2i64:14; C:       # %bb.0: # %entry15; C-NEXT:    movaps {{.*#+}} xmm0 = [18374686479671623680,18446744073709551615]16; C-NEXT:    retq17entry:18  %r = call <2 x i64> @llvm.bswap.v2i64(<2 x i64> <i64 255, i64 -1>)19  ret <2 x i64> %r20}21 22declare <4 x i32> @llvm.bswap.v4i32(<4 x i32>)23 24define <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> %r27}28;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:29; A: {{.*}}30; UNUSED: {{.*}}31