1 ; RUN: opt -mtriple=nvptx64-nvidia-cuda -passes=load-store-vectorizer -S -o - %s | FileCheck %s
3 ; CHECK-LABEL: @int16x2
4 ; CHECK: load <2 x i16>
5 ; CHECK: store <2 x i16>
6 define void @int16x2(ptr nocapture align 4 %ptr) {
7 %ptr0 = getelementptr i16, ptr %ptr, i64 0
8 %ptr1 = getelementptr i16, ptr %ptr, i64 1
10 %l0 = load i16, ptr %ptr0, align 4
11 %l1 = load i16, ptr %ptr1, align 2
13 store i16 %l1, ptr %ptr0, align 4
14 store i16 %l0, ptr %ptr1, align 2