Mercurial > hg > CbC > CbC_llvm
view clang/test/CodeGen/unaligned-struct-copy.c @ 266:00f31e85ec16 default tip
Added tag current for changeset 31d058e83c98
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Sat, 14 Oct 2023 10:13:55 +0900 |
parents | 2e18cbf3894f |
children |
line wrap: on
line source
// RUN: %clang_cc1 -xc -O2 -triple thumbv7a-unknown-windows-eabi -fms-extensions -emit-llvm < %s | FileCheck %s // RUN: %clang_cc1 -xc++ -O2 -triple thumbv7a-unknown-windows-eabi -fms-extensions -emit-llvm < %s | FileCheck %s // RUN: %clang_cc1 -xc -O2 -triple x86_64-unknown-linux-gnu -fms-extensions -emit-llvm < %s | FileCheck %s // RUN: %clang_cc1 -xc++ -O2 -triple x86_64-unknown-linux-gnu -fms-extensions -emit-llvm < %s | FileCheck %s struct S1 { unsigned long x; }; // CHECK: define // CHECK-SAME: void // CHECK-SAME: test1 void test1(__unaligned struct S1 *out) { // CHECK: store // CHECK-SAME: align 1 out->x = 5; // CHECK: ret void } // CHECK: define // CHECK-SAME: void // CHECK-SAME: test2 void test2(__unaligned struct S1 *out, __unaligned struct S1 *in) { // CHECK: load // CHECK-SAME: align 1 // CHECK: store // CHECK-SAME: align 1 *out = *in; // CHECK: ret void }