| Evandro Menezes | 10ae20d | 2018-02-16 20:00:57 +0000 | [diff] [blame] | 1 | ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-linux-gnu | FileCheck --check-prefixes=CHECK,NOSPLIT %s |
| 2 | ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64_be-linux-gnu | FileCheck --check-prefixes=CHECK,NOSPLIT %s |
| 3 | ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-linux-gnu -mcpu=exynos-m1 | FileCheck --check-prefixes=CHECK,NOSPLIT %s |
| 4 | ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64_be-linux-gnu -mcpu=exynos-m1 | FileCheck --check-prefixes=CHECK,SPLIT %s |
| 5 | |
| 6 | ; CHECK-LABEL: test_split_f: |
| 7 | ; NOSPLIT: str q{{[0-9]+}}, [x{{[0-9]+}}] |
| 8 | ; SPLIT: st1 { v{{[0-9]+}}.2s }, [x{{[0-9]+}}] |
| 9 | ; SPLIT: st1 { v{{[0-9]+}}.2s }, [x{{[0-9]+}}] |
| 10 | define void @test_split_f(<4 x float> %val, <4 x float>* %addr) { |
| 11 | store <4 x float> %val, <4 x float>* %addr, align 8 |
| 12 | ret void |
| 13 | } |
| 14 | |
| 15 | ; CHECK-LABEL: test_split_d: |
| 16 | ; NOSPLIT: str q{{[0-9]+}}, [x{{[0-9]+}}] |
| 17 | ; SPLIT: st1 { v{{[0-9]+}}.2d }, [x{{[0-9]+}}] |
| 18 | define void @test_split_d(<2 x double> %val, <2 x double>* %addr) { |
| 19 | store <2 x double> %val, <2 x double>* %addr, align 8 |
| 20 | ret void |
| 21 | } |
| 22 | |
| 23 | ; CHECK-LABEL: test_split_128: |
| 24 | ; CHECK: str q{{[0-9]+}}, [x{{[0-9]+}}] |
| 25 | define void @test_split_128(fp128 %val, fp128* %addr) { |
| 26 | store fp128 %val, fp128* %addr, align 8 |
| 27 | ret void |
| 28 | } |