-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Natvis visualiser and debuginfo tests for f16
#127001
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
// its numerical value. | ||
|
||
//@ min-lldb-version: 310 | ||
//@ ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155 | ||
|
||
//@ compile-flags:-g | ||
|
||
|
@@ -49,62 +48,69 @@ | |
// gdbg-command:print 'basic_types_mut_globals::U64' | ||
// gdbr-command:print U64 | ||
// gdb-check:$12 = 64 | ||
// gdbg-command:print 'basic_types_mut_globals::F16' | ||
// gdbr-command:print F16 | ||
// gdb-check:$13 = 1.5 | ||
// gdbg-command:print 'basic_types_mut_globals::F32' | ||
// gdbr-command:print F32 | ||
// gdb-check:$13 = 2.5 | ||
// gdb-check:$14 = 2.5 | ||
// gdbg-command:print 'basic_types_mut_globals::F64' | ||
// gdbr-command:print F64 | ||
// gdb-check:$14 = 3.5 | ||
// gdb-check:$15 = 3.5 | ||
// gdb-command:continue | ||
|
||
// Check new values | ||
// gdbg-command:print 'basic_types_mut_globals'::B | ||
// gdbr-command:print B | ||
// gdb-check:$15 = true | ||
// gdb-check:$16 = true | ||
// gdbg-command:print 'basic_types_mut_globals'::I | ||
// gdbr-command:print I | ||
// gdb-check:$16 = 2 | ||
// gdb-check:$17 = 2 | ||
// gdbg-command:print/d 'basic_types_mut_globals'::C | ||
// gdbr-command:print C | ||
// gdbg-check:$17 = 102 | ||
// gdbr-check:$17 = 102 'f' | ||
// gdbg-check:$18 = 102 | ||
// gdbr-check:$18 = 102 'f' | ||
// gdbg-command:print/d 'basic_types_mut_globals'::I8 | ||
// gdbr-command:print/d I8 | ||
// gdb-check:$18 = 78 | ||
// gdb-check:$19 = 78 | ||
// gdbg-command:print 'basic_types_mut_globals'::I16 | ||
// gdbr-command:print I16 | ||
// gdb-check:$19 = -26 | ||
// gdb-check:$20 = -26 | ||
// gdbg-command:print 'basic_types_mut_globals'::I32 | ||
// gdbr-command:print I32 | ||
// gdb-check:$20 = -12 | ||
// gdb-check:$21 = -12 | ||
// gdbg-command:print 'basic_types_mut_globals'::I64 | ||
// gdbr-command:print I64 | ||
// gdb-check:$21 = -54 | ||
// gdb-check:$22 = -54 | ||
// gdbg-command:print 'basic_types_mut_globals'::U | ||
// gdbr-command:print U | ||
// gdb-check:$22 = 5 | ||
// gdb-check:$23 = 5 | ||
// gdbg-command:print/d 'basic_types_mut_globals'::U8 | ||
// gdbr-command:print/d U8 | ||
// gdb-check:$23 = 20 | ||
// gdb-check:$24 = 20 | ||
// gdbg-command:print 'basic_types_mut_globals'::U16 | ||
// gdbr-command:print U16 | ||
// gdb-check:$24 = 32 | ||
// gdb-check:$25 = 32 | ||
// gdbg-command:print 'basic_types_mut_globals'::U32 | ||
// gdbr-command:print U32 | ||
// gdb-check:$25 = 16 | ||
// gdb-check:$26 = 16 | ||
// gdbg-command:print 'basic_types_mut_globals'::U64 | ||
// gdbr-command:print U64 | ||
// gdb-check:$26 = 128 | ||
// gdb-check:$27 = 128 | ||
// gdbg-command:print 'basic_types_mut_globals'::F16 | ||
// gdbr-command:print F16 | ||
// gdb-check:$28 = 2.25 | ||
// gdbg-command:print 'basic_types_mut_globals'::F32 | ||
// gdbr-command:print F32 | ||
// gdb-check:$27 = 5.75 | ||
// gdb-check:$29 = 5.75 | ||
// gdbg-command:print 'basic_types_mut_globals'::F64 | ||
// gdbr-command:print F64 | ||
// gdb-check:$28 = 9.25 | ||
// gdb-check:$30 = 9.25 | ||
|
||
#![allow(unused_variables)] | ||
#![feature(omit_gdb_pretty_printer_section)] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs a If you're up for it you can try to remove the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added the missing |
||
#![omit_gdb_pretty_printer_section] | ||
#![feature(f16)] | ||
|
||
static mut B: bool = false; | ||
static mut I: isize = -1; | ||
|
@@ -118,6 +124,7 @@ static mut U8: u8 = 100; | |
static mut U16: u16 = 16; | ||
static mut U32: u32 = 32; | ||
static mut U64: u64 = 64; | ||
static mut F16: f16 = 1.5; | ||
static mut F32: f32 = 2.5; | ||
static mut F64: f64 = 3.5; | ||
|
||
|
@@ -137,6 +144,7 @@ fn main() { | |
U16 = 32; | ||
U32 = 16; | ||
U64 = 128; | ||
F16 = 2.25; | ||
F32 = 5.75; | ||
F64 = 9.25; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a comment explaining why we do this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added