1 ; RUN: llc < %s -verify-machineinstrs -mtriple=aarch64-none-linux-gnu -mattr=neon | FileCheck %s
3 define void @test_store_f128(ptr %ptr, fp128 %val) #0 {
4 ; CHECK-LABEL: test_store_f128
5 ; CHECK: str {{q[0-9]+}}, [{{x[0-9]+}}]
7 store fp128 %val, ptr %ptr, align 16
11 define fp128 @test_load_f128(ptr readonly %ptr) #2 {
12 ; CHECK-LABEL: test_load_f128
13 ; CHECK: ldr {{q[0-9]+}}, [{{x[0-9]+}}]
15 %0 = load fp128, ptr %ptr, align 16
19 define void @test_vstrq_p128(ptr %ptr, i128 %val) #0 {
20 ; CHECK-LABEL: test_vstrq_p128
21 ; CHECK: stp {{x[0-9]+}}, {{x[0-9]+}}, [{{x[0-9]+}}]
24 %0 = bitcast i128 %val to fp128
25 store fp128 %0, ptr %ptr, align 16
29 define i128 @test_vldrq_p128(ptr readonly %ptr) #2 {
30 ; CHECK-LABEL: test_vldrq_p128
31 ; CHECK: ldp {{x[0-9]+}}, {{x[0-9]+}}, [{{x[0-9]+}}]
34 %0 = load fp128, ptr %ptr, align 16
35 %1 = bitcast fp128 %0 to i128
39 define void @test_ld_st_p128(ptr nocapture %ptr) #0 {
40 ; CHECK-LABEL: test_ld_st_p128
41 ; CHECK: ldr {{q[0-9]+}}, [{{x[0-9]+}}]
42 ; CHECK-NEXT: str {{q[0-9]+}}, [{{x[0-9]+}}, #16]
44 %0 = load fp128, ptr %ptr, align 16
45 %add.ptr = getelementptr inbounds i128, ptr %ptr, i64 1
46 store fp128 %0, ptr %add.ptr, align 16