CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
106 lines
1.7 KiB
C
106 lines
1.7 KiB
C
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - -O3 -no-struct-path-tbaa | FileCheck %s
|
|
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - -O3 | FileCheck %s --check-prefix=PATH
|
|
|
|
static int f0(int n) {
|
|
struct s0 {
|
|
int a : 30;
|
|
int b : 2;
|
|
long long c : 31;
|
|
} x = { 0xdeadbeef, 0xdeadbeef, 0xdeadbeef };
|
|
|
|
x.a += n;
|
|
x.b += n;
|
|
x.c += n;
|
|
|
|
return x.a + x.b + x.c;
|
|
}
|
|
|
|
int g0(void) {
|
|
// CHECK-LABEL: @g0()
|
|
// CHECK: ret i32 1
|
|
// PATH-LABEL: @g0()
|
|
// PATH: ret i32 1
|
|
return f0(-1) + 44335655;
|
|
}
|
|
|
|
static int f1(void) {
|
|
struct s1 {
|
|
int a:13;
|
|
char b;
|
|
unsigned short c:7;
|
|
} x;
|
|
|
|
x.a = -40;
|
|
x.b = 10;
|
|
x.c = 15;
|
|
|
|
return x.a + x.b + x.c;
|
|
}
|
|
|
|
int g1(void) {
|
|
// CHECK-LABEL: @g1()
|
|
// CHECK: ret i32 1
|
|
// PATH-LABEL: @g1()
|
|
// PATH: ret i32 1
|
|
return f1() + 16;
|
|
}
|
|
|
|
static int f2(void) {
|
|
struct s2 {
|
|
short a[3];
|
|
int b : 15;
|
|
} x;
|
|
|
|
x.a[0] = x.a[1] = x.a[2] = -40;
|
|
x.b = 10;
|
|
|
|
return x.b;
|
|
}
|
|
|
|
int g2(void) {
|
|
// CHECK-LABEL: @g2()
|
|
// CHECK: ret i32 1
|
|
// PATH-LABEL: @g2()
|
|
// PATH: ret i32 1
|
|
return f2() - 9;
|
|
}
|
|
|
|
static int f3(int n) {
|
|
struct s3 {
|
|
unsigned a:16;
|
|
unsigned b:28 __attribute__ ((packed));
|
|
} x = { 0xdeadbeef, 0xdeadbeef };
|
|
struct s4 {
|
|
signed a:16;
|
|
signed b:28 __attribute__ ((packed));
|
|
} y;
|
|
y.a = -0x56789abcL;
|
|
y.b = -0x56789abcL;
|
|
return ((y.a += x.a += n) +
|
|
(y.b += x.b += n));
|
|
}
|
|
|
|
int g3(void) {
|
|
// CHECK-LABEL: @g3()
|
|
// CHECK: ret i32 1
|
|
// PATH-LABEL: @g3()
|
|
// PATH: ret i32 1
|
|
return f3(20) + 130725747;
|
|
}
|
|
|
|
static int f4(void) {
|
|
struct s5 {
|
|
int b:1;
|
|
} x;
|
|
x.b = 1;
|
|
return x.b;
|
|
}
|
|
|
|
int g4(void) {
|
|
// CHECK-LABEL: @g4()
|
|
// CHECK: ret i32 1
|
|
// PATH-LABEL: @g4()
|
|
// PATH: ret i32 1
|
|
return f4() + 2;
|
|
}
|