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
68 lines
3.0 KiB
Plaintext
68 lines
3.0 KiB
Plaintext
; REQUIRES: x86-registered-target
|
|
|
|
; Test case 2 - Assembler instructions.
|
|
|
|
; hello-world.cpp
|
|
; 1 extern int printf(const char * format, ... );
|
|
; 2
|
|
; 3 int main()
|
|
; 4 {
|
|
; 5 printf("Hello, World\n");
|
|
; 6 return 0;
|
|
; 7 }
|
|
|
|
; Logical lines.
|
|
; The logical views shows the intermixed lines and assembler instructions,
|
|
; allowing to compare the code generated by the different toolchains.
|
|
|
|
; RUN: llvm-debuginfo-analyzer --attribute=language,level,format,producer \
|
|
; RUN: --print=lines,instructions \
|
|
; RUN: %p/Inputs/hello-world-dwarf-clang.o \
|
|
; RUN: %p/Inputs/hello-world-dwarf-gcc.o 2>&1 | \
|
|
; RUN: FileCheck --strict-whitespace -check-prefix=ONE %s
|
|
|
|
; ONE: Logical View:
|
|
; ONE-NEXT: [000] {File} 'hello-world-dwarf-clang.o' -> elf64-x86-64
|
|
; ONE-EMPTY:
|
|
; ONE-NEXT: [001] {CompileUnit} 'hello-world.cpp'
|
|
; ONE-NEXT: [002] {Producer} 'clang version 15.0.0 {{.*}}'
|
|
; ONE-NEXT: [002] {Language} 'DW_LANG_C_plus_plus_14'
|
|
; ONE-NEXT: [002] 3 {Function} extern not_inlined 'main' -> 'int'
|
|
; ONE-NEXT: [003] 4 {Line}
|
|
; ONE-NEXT: [003] {Code} 'pushq %rbp'
|
|
; ONE-NEXT: [003] {Code} 'movq %rsp, %rbp'
|
|
; ONE-NEXT: [003] {Code} 'subq $0x10, %rsp'
|
|
; ONE-NEXT: [003] {Code} 'movl $0x0, -0x4(%rbp)'
|
|
; ONE-NEXT: [003] 5 {Line}
|
|
; ONE-NEXT: [003] {Code} 'leaq (%rip), %rdi'
|
|
; ONE-NEXT: [003] {Code} 'movb $0x0, %al'
|
|
; ONE-NEXT: [003] {Code} 'callq 0x0'
|
|
; ONE-NEXT: [003] 6 {Line}
|
|
; ONE-NEXT: [003] {Code} 'xorl %eax, %eax'
|
|
; ONE-NEXT: [003] {Code} 'addq $0x10, %rsp'
|
|
; ONE-NEXT: [003] {Code} 'popq %rbp'
|
|
; ONE-NEXT: [003] {Code} 'retq'
|
|
; ONE-NEXT: [002] 6 {Line}
|
|
; ONE-EMPTY:
|
|
; ONE-NEXT: Logical View:
|
|
; ONE-NEXT: [000] {File} 'hello-world-dwarf-gcc.o' -> elf64-x86-64
|
|
; ONE-EMPTY:
|
|
; ONE-NEXT: [001] {CompileUnit} 'hello-world.cpp'
|
|
; ONE-NEXT: [002] {Producer} 'GNU C++14 10.3.0 {{.*}}'
|
|
; ONE-NEXT: [002] {Language} 'DW_LANG_C_plus_plus'
|
|
; ONE-NEXT: [002] 3 {Function} extern not_inlined 'main' -> 'int'
|
|
; ONE-NEXT: [003] 4 {Line}
|
|
; ONE-NEXT: [003] {Code} 'endbr64'
|
|
; ONE-NEXT: [003] {Code} 'pushq %rbp'
|
|
; ONE-NEXT: [003] {Code} 'movq %rsp, %rbp'
|
|
; ONE-NEXT: [003] 5 {Line}
|
|
; ONE-NEXT: [003] {Code} 'leaq (%rip), %rdi'
|
|
; ONE-NEXT: [003] {Code} 'movl $0x0, %eax'
|
|
; ONE-NEXT: [003] {Code} 'callq 0x0'
|
|
; ONE-NEXT: [003] 6 {Line}
|
|
; ONE-NEXT: [003] {Code} 'movl $0x0, %eax'
|
|
; ONE-NEXT: [003] 7 {Line}
|
|
; ONE-NEXT: [003] {Code} 'popq %rbp'
|
|
; ONE-NEXT: [003] {Code} 'retq'
|
|
; ONE-NEXT: [002] 7 {Line}
|